Reviewed keyboard shortcuts; converging back to Emacs defaults...

Commit
dc743e2046c9e5d6354644adc842da1cde6546f8
Author
Marius Peter <marius.peter@tutanota.com>
Author date
Committer
Marius Peter <marius.peter@tutanota.com>
Committer date
smart-documents.org
index 28f8ac7d..ea29855f 100644..100644
@@ -407,7 +407,7 @@
407 407 * Keyboard shortcuts
408 408
409 409 What follows are the most useful keybindings, as well as the
410 Removed: keybindings to the functions we defined ourselves. It doesn't matter
410 Added: keybindings to the functions we defined ourselves. It doesn't matter
411 411 if we haven't defined the functions themselves yet; Emacs will accept
412 412 a keybinding for any symbol and does not check if the symbol's
413 413 function definition exists, until the keybinding is pressed.
@@ -426,22 +426,28 @@
426 426
427 427 ** Files
428 428
429 Removed: *** Save a file
429 Added: *** COMMENT Save a file
430 430
431 Added: # This is made redundant by C-x C-s.
432 Added:
431 433 #+BEGIN_SRC emacs-lisp :tangle yes
432 434 (global-set-key (kbd "C-s") 'save-buffer)
433 435 #+END_SRC
434 436
435 Removed: *** Open a file
437 Added: *** COMMENT Open a file
436 438
439 Added: # This is made redundant by C-x C-f.
440 Added:
437 441 #+BEGIN_SRC emacs-lisp :tangle yes
438 Removed: (global-set-key (kbd "C-o") 'find-file)
442 Added: (global-set-key (kbd "C-c o") 'find-file)
439 443 #+END_SRC
440 444
441 Removed: *** List open files
445 Added: *** COMMENT List open files
442 446
447 Added: # This is made redundant by C-x b.
448 Added:
443 449 #+BEGIN_SRC emacs-lisp :tangle yes
444 Removed: (global-set-key (kbd "C-b") 'ivy-switch-buffer)
450 Added: (global-set-key (kbd "C-c b") 'ivy-switch-buffer)
445 451 #+END_SRC
446 452
447 453 *** Open this very file
@@ -501,7 +507,9 @@
501 507
502 508 ** Windows
503 509
504 Removed: *** Close window and quit
510 Added: *** COMMENT Close window and quit
511 Added: # When considering key chord usage frequency, Emacs default
512 Added: # keybindings make more sense every passing day.
505 513
506 514 The following bindings lead to more natural window & frame exit behaviors.
507 515
@@ -515,7 +523,7 @@
515 523 *** Make new frame
516 524
517 525 #+BEGIN_SRC emacs-lisp :tangle yes
518 Removed: (global-set-key (kbd "C-n") 'make-frame)
526 Added: (global-set-key (kbd "C-c n") 'make-frame)
519 527 #+END_SRC
520 528
521 529 *** Make only frame
@@ -567,8 +575,8 @@
567 575 ** TODO COMMENT Navigation
568 576 # [2021-09-13 Mon]
569 577 #
570 Removed: # Kinda don't like this... This is some more text. And then some. And
571 Removed: # then some.
578 Added: # Kinda don't like this... This is some more text. And then some.
579 Added: # And then some.
572 580
573 581 =Alt= (=Meta=) is the privileged key for motion in a buffer. It is
574 582 followed by an optional numerical argument, and a movement
@@ -640,9 +648,10 @@
640 648
641 649 ** One-click workflows
642 650
643 Removed: A major advantage of the Emacs document production system: arbitrarily
644 Removed: complicated functions can be assigned to very simple keybindings. This
645 Removed: means we can automate workflows up to a pretty absurd level.
651 Added: A major advantage of Emacs is the following: arbitrarily complicated
652 Added: workflows can be described by a series of functions assigned to a
653 Added: single keybinding. This means we can build automations to a pretty
654 Added: absurd level.
646 655
647 656 *** Export to PDF
648 657
@@ -652,7 +661,7 @@
652 661 **** Document
653 662
654 663 #+BEGIN_SRC emacs-lisp :tangle yes
655 Removed: (global-set-key (kbd "C-p") 'sd-quick-export)
664 Added: (global-set-key (kbd "C-c p") 'sd-quick-export)
656 665 #+END_SRC
657 666
658 667 **** TODO Presentation
@@ -669,7 +678,13 @@
669 678 (global-set-key [f12] 'sd-beautify-buffer)
670 679 #+END_SRC
671 680
681 Added: *** Smart compilation
672 682
683 Added: #+BEGIN_SRC emacs-lisp :tangle yes
684 Added: (global-set-key (kbd "C-c m") 'sd-smart-compile)
685 Added: #+END_SRC
686 Added:
687 Added:
673 688 * Packages
674 689
675 690 Packages are collections of =.el= files providing added functionality
@@ -728,18 +743,19 @@
728 743 keys.[fn::For more information on =vi= keybindings, visit
729 744 [[https://hea-www.harvard.edu/~fine/Tech/vi.html]].]
730 745
731 Removed: #+BEGIN_SRC emacs-lisp :tangle yes
746 Added: #+BEGIN_SRC emacs-lisp :tangle no
732 747 (use-package evil)
733 748 (setq evil-toggle-key "C-c d")
734 749 (evil-mode 1)
735 750 #+END_SRC
736 751
737 Removed: ** Spelling, completion, and snippets
738 752
753 Added: * Spelling, completion, and snippets
754 Added:
739 755 The following customizations open the doors to vastly increased
740 756 typing speed and accuracy.
741 757
742 Removed: *** Syntax checking
758 Added: ** Syntax checking
743 759
744 760 We require a package to highlight syntax errors and warnings. The
745 761 ~flycheck~ package ensures we are aware of all our code's syntactical
@@ -751,22 +767,22 @@
751 767 (global-flycheck-mode)
752 768 #+END_SRC
753 769
754 Removed: *** Spelling
770 Added: ** Spelling
755 771
756 772 #+NAME: flyspell
757 Removed: #+BEGIN_SRC emacs-lisp :tangle yes
773 Added: #+BEGIN_SRC emacs-lisp :tangle no
758 774 (use-package flyspell)
759 775 (add-hook 'text-mode-hook 'flyspell-mode)
760 776 #+END_SRC
761 777
762 Removed: *** Completion
778 Added: ** Completion
763 779
764 Removed: #+BEGIN_SRC emacs-lisp :tangle yes
780 Added: #+BEGIN_SRC emacs-lisp :tangle no
765 781 (use-package company)
766 782 (add-hook 'after-init-hook 'global-company-mode)
767 783 #+END_SRC
768 784
769 Removed: *** Insert template from keyword
785 Added: ** Insert template from keyword
770 786
771 787 Thanks to ~yasnippet~, we can type certain keywords, then press =TAB=,
772 788 to automatically insert a predefined text snippet. We can then
@@ -791,7 +807,7 @@
791 807 (yas-global-mode 1)
792 808 #+END_SRC
793 809
794 Removed: *** Delete all consecutive whitespaces
810 Added: ** Delete all consecutive whitespaces
795 811
796 812 #+NAME: hungry-delete
797 813 #+BEGIN_SRC emacs-lisp :tangle yes
@@ -876,7 +892,7 @@
876 892
877 893 #+BEGIN_SRC emacs-lisp :tangle yes
878 894 (use-package swiper
879 Removed: :bind (("C-f" . swiper)))
895 Added: :bind (("C-c f" . swiper)))
880 896 #+END_SRC
881 897
882 898 *** COMMENT Web browsing
@@ -1400,7 +1416,6 @@
1400 1416 (gnuplot . t)
1401 1417 (ocaml . t)))
1402 1418 #+END_SRC
1403 Removed:
1404 1419
1405 1420 ** Exporting {{{SDs}}}
1406 1421