2 https://www.gnu.org/software/emacs/refcards/pdf/refcard.pdf
3 https://www.gnu.org/software/emacs/manual/html_node/elisp/Key-Binding-Conventions.html
7 C-u C-x C-c Save and quit
11 C-x z Repeat last command
13 M-: Evaluate expression as elisp
14 M-x eval-buffer Load current buffer as elisp
15 C-x C-0 Reset font to standard
16 C-x C-+/= Increase font size
17 C-x C-- Decrease font size
21 C-h k Help about key binding
22 C-h v Describe variable
23 C-h f Describe function
24 C-h m Documentation on active modes
27 C-s Search forward (ivy/swiper mode)
29 M-s . Search for symbol around point
30 C-s Find next item (while searching)
31 Backspace Previous search (while searching)
32 M-% Search and replace
33 M-x linum-mode Display line numbers
36 C-x C-s Save current buffer
37 C-x s Save some buffers
38 C-x C-w Write buffer to file
41 C-c f Find files in git repository
42 C-c g Grep in git repository
43 M-x find-file-at-point Find (open) filename at point
44 M-x browse-url-at-point Browse URL at point
46 C-x C-k Kill all buffers that are not visible
47 C-x b Select named buffer
48 C-x C-b Show all buffers
49 C-x C-r Show recent files
50 M-x scratch-buffer Create new scratch buffer
53 C-x o Switch to other window
55 C-x 1 Switch to single window
56 C-x 2 Split vertically
57 C-x 3 Split horizontally
59 C-x + Make windows the same height
60 C-x ^ Make window taller
61 C-Up / C-Down / C-Left / C-Right Switch windows
62 M-x make-frame New frame (X11 window)
65 M-m Jump back to start of indentation
66 M-r Jump to window top/bottom/middle
68 M-g Tab Jump to column
69 M-g j Jump to character
74 C-b Back one character
75 C-n Forward one character
82 M-{ Back one paragraph
83 M-} Forward one paragraph
86 C-M-p Back to start of balanced expression
87 C-M-n Forward to end of balanced expression
88 C-M-b Back one s-expression / symbol
89 C-M-f Forward one s-expression / symbol
90 C-M-u Move up one level of parentheses
94 M-; Comment line or region
95 M-i Change inner region
96 M-q Reformat paragraph
100 C-x C-l Lower case region
101 C-x C-u Upper case region
102 C-o Insert a new line above point
103 M-o Insert a new line below point
104 C-j Newline and maybe indent
105 M-^ Join to previous line
106 M-j New line with comment
110 C-Space Set mark (start selection)
111 C-Space C-Space Set mark to point
112 C-u C-space Return to mark
113 C-x C-x Exchange point and mark
114 C-M-h Highlight expression
115 M-@ Set mark at end of next word
117 C-c l Insert extra cursor on all lines in region
118 C-c m Ask to insert extra cursor at locations matching selected region
119 M-= Display info about region
121 # Killing and deleting
122 C-M-k Kill s-expression / symbol
123 C-w Kill from mark to point
124 C-y Yank text (paste)
125 M-y Scroll through kill ring (paste buffer)
126 M-_ Select current line
127 M-z <char> Kill until <char>
128 C-k Kill to end of line
129 M-0 C-k Kill to beginning of line
130 C-a C-k C-k Kill current line
131 C-S-Backspace Kill current line
132 C-d Delete next character
134 M-Backspace Delete previous word
135 M-Space Collpase to one space around point
136 M-\ Delete spaces around point
137 C-x C-o Collapse blank lines
138 M-x delete-trailing-whitespace Delete trailing whitespace
143 C-x C-t Transpose lines
144 C-M-t Transpose s-expressions
147 C-x Space Toggle mark rectangle mode
148 C-x r t Replace rectangle with string
151 F3 , F4 Start recording macro, finish recording macro
152 C-u F3 Play last macro then append keys
156 C-x C-j Open dired at current file
157 F8 Toggle flyspell-mode
158 F9 Toggle whitespace mode
160 M-x eshell Run eshell
161 M-x ielm Run Emacs Lisp REPL
162 M-x shell Run bash shell
163 M-x slime Run Common Lisp REPL
164 M-x smerge-mode Resolve merge conflicts
165 M-x restclient Open HTTP client
166 M-x yas-reload-all Reload all snippets
169 C-M-x Eval top-level form
170 C-c C-z Switch to REPL
171 C-c C-c Compile and load the top-level form at point
172 C-c M-k Compile (but not load) the current buffer's file
176 M-& Execute command asynchronously
177 M-| Execute with region
178 C-u M-| Filter with region
181 C-c ^ p Go to previous hunk
182 C-c ^ n Go to next hunk
183 C-c ^ Return Keep current
190 C-M-i Automatically correct word
191 C-; Automatically correct last word
192 <mouse-2> Popup word correction
197 C-c ! p Previous error
199 C-c ! x Disable checker