2 * [Reference Card](https://www.gnu.org/software/emacs/refcards/pdf/refcard.pdf)
3 * [Key Binding Conventions](https://www.gnu.org/software/emacs/manual/html_node/elisp/Key-Binding-Conventions.html)
8 C-u C-x C-c Save and quit
12 C-x z Repeat last command
14 M-: Evaluate expression as elisp
15 M-x eval-buffer Load current buffer as elisp
16 C-x C-0 Reset font to standard
17 C-x C-+/= Increase font size
18 C-x C-- Decrease font size
23 C-h . Help at point (Eldoc)
25 C-h k Help about key binding
26 C-h v Describe variable
27 C-h f Describe function
28 C-h m Documentation on active modes
29 <prefix> C-h Show bindings starting with <prefix>
30 C-c C-b Back to previous help topic (while in help-mode)
31 q Quit window and bury buffer
36 C-s Search forward (consult-line)
37 C-r Resume vertico search
38 M-. Find thing at point
40 M-? Find references at point
45 C-x C-s Save current buffer
46 C-x s Save some buffers
47 C-x C-w Write buffer to file
49 C-x f Find files in project
52 C-x c Clean up all buffers that are not visible
53 C-x b Switch to previous buffer
54 C-x t Switch between matching prod/test file
56 C-x C-r Show recent files
57 M-x scratch-buffer Create new scratch buffer
62 C-x o Switch to other window
64 C-x 1 Switch to single window
65 C-x 2 Split vertically
66 C-x 3 Split horizontally
67 C-x 9 Resize windows with arrow keys
68 C-x { / C-x } Shrink/enlarge window horizontally
69 C-Up / C-Down / C-Left / C-Right Switch windows
70 C-l Recenter display (center, top then bottom)
71 C-M-l Reposition window to contain useful text (eg entire defun)
72 C-x 5 2 New frame (X11 window)
77 M-m Jump back to start of indentation
78 M-r Jump to window top/bottom/middle
79 M-g Tab Jump to column
80 M-g c Jump to character location
81 M-g f Jump to character, ;/, to go forward/back
82 M-g i Show imenu overview of file
83 M-g g Jump to visible line or any line
91 C-b Back one character
92 C-f Forward one character
99 M-{ Back one paragraph
100 M-} Forward one paragraph
103 C-M-p Back to start of balanced expression
104 C-M-n Forward to end of balanced expression
105 C-M-b Back one s-expression / symbol
106 C-M-f Forward one s-expression / symbol
107 C-M-u Move up one level of parentheses
112 Tab Indent current line correctly
113 C-x Tab Indent region with left/right
115 C-M-i Complete at point
116 M-Tab Auto-complete at point
117 M-; Comment line or region
118 M-i Change inner region
119 M-q Reformat paragraph
123 C-x C-l Lower case region
124 C-x C-u Upper case region
125 C-o Insert a new line above point
126 M-o Insert a new line below point
127 C-j Newline and maybe indent
128 M-^ Join to previous line
129 M-j New line with comment
134 M-x comment-box Wrap region in comment box
139 C-Space Set mark (start selection)
140 C-Space C-Space Set mark to point
142 C-x C-space Pop global mark
143 C-x C-x Exchange point and mark
144 C-M-h Highlight expression
145 M-@ Set mark at end of next word
152 M-s h u Unhighlight regexp
153 M-s h . Highlight symbol at point
154 M-s h p Highlight phrase
155 M-s h r Highlight regexp
156 M-s h l Highlight lines matching regexp
159 # Killing and deleting
161 C-M-k Kill s-expression / symbol
162 C-w Kill from mark to point
163 C-y Yank text (paste)
164 M-y Scroll through kill ring (paste buffer)
165 M-z <char> Kill until <char>
166 C-k Kill to end of line
167 M-0 C-k Kill to beginning of line
168 C-c k Kill whole line
170 C-d Delete next character
172 M-Backspace Delete previous word
173 M-\ Delete spaces around point
174 C-x C-o Collapse blank lines
175 M-x delete-trailing-whitespace Delete trailing whitespace
182 C-x C-t Transpose lines
183 C-M-t Transpose s-expressions
188 C-x Space Toggle mark rectangle mode
189 C-x r t Replace rectangle with string
194 F3 , F4 Start recording macro, finish recording macro
195 C-u F3 Play last macro then append keys
197 C-x C-k b Bind macro to key (0-9, A-Z)
198 C-x C-k C-e Edit last macro
199 C-x C-k l Edit recent keys as macro
200 C-x C-k r Apply macro to region lines
205 C-x r s <?> Copy region into register
206 C-x r i <?> Insert text from register
207 C-x r Space <?> Save point position to register
208 C-x r j <?> Jump to point position at register
211 # Mouse secondary selection
213 Meta-Drag Set selection
214 Meta-Right-Click Yank secondary
220 F7 Toggle flymake-mode
221 F8 Toggle flyspell-mode
222 F9 Toggle whitespace mode
224 M-s o Search in buffer and display results in occur-mode
225 M-x multi-occur Search in buffers and display results in occur-mode
226 M-x eshell Run eshell
227 M-x overwrite-mode Switch to overwrite mode
228 M-x shell Run bash shell
229 M-x smerge-ediff Resolve merge conflicts in multi-window mode
230 M-x smerge-mode Resolve merge conflicts by hunks
231 M-x term Run terminal
232 M-x yas-reload-all Reload all snippets
238 e Switch to edit mode
239 C-c C-c Switch back to occur mode
246 C-x v [ Previous hunk
250 C-x v f Magit file specific commands
251 C-x v g Magit dispatch popup
254 M-p Previous sibling section
255 M-n Next sibling section
257 Tab Toggle visibility of section
258 C-Tab Cycle visibility of section and its children
259 q Kill window and bury buffer
260 C-c C-c Perform action
261 C-c C-k Cancel action
266 C-M-x Eval top-level form
267 C-c C-z Switch to REPL
268 C-c C-c Compile and load the top-level form at point
269 C-c M-k Compile (but not load) the current buffer's file
275 M-& Execute command asynchronously
276 M-| Execute with region
277 C-u M-| Filter with region
282 C-c ^ p Go to previous hunk
283 C-c ^ n Go to next hunk
284 C-c ^ Return Keep current
293 C-; Automatically correct last word
294 <mouse-2> Popup word correction