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
40 C-x f Find files in git repository
41 C-x g Grep in git repository
42 M-x find-file-at-point Find (open) filename at point
43 M-x browse-url-at-point Browse URL at point
45 C-x c Clean up all buffers that are not visible
46 C-x b Select named buffer
47 C-x C-b Show all buffers
48 C-x C-r Show recent files
49 M-x scratch-buffer Create new scratch buffer
52 C-x o Switch to other window
54 C-x 1 Switch to single window
55 C-x 2 Split vertically
56 C-x 3 Split horizontally
58 C-x + Make windows the same height
59 C-x ^ Make window taller
60 C-Up / C-Down / C-Left / C-Right Switch windows
61 M-x make-frame New frame (X11 window)
64 M-m Jump back to start of indentation
65 M-r Jump to window top/bottom/middle
67 M-g Tab Jump to column
68 M-g j Jump to character
73 C-b Back one character
74 C-n Forward one character
81 M-{ Back one paragraph
82 M-} Forward one paragraph
85 C-M-p Back to start of balanced expression
86 C-M-n Forward to end of balanced expression
87 C-M-b Back one s-expression / symbol
88 C-M-f Forward one s-expression / symbol
89 C-M-u Move up one level of parentheses
93 M-; Comment line or region
94 M-i Change inner region
95 M-q Reformat paragraph
99 C-x C-l Lower case region
100 C-x C-u Upper case region
101 C-o Insert a new line above point
102 M-o Insert a new line below point
103 C-j Newline and maybe indent
104 M-^ Join to previous line
105 M-j New line with comment
109 C-Space Set mark (start selection)
110 C-Space C-Space Set mark to point
111 C-u C-space Return to mark
112 C-x C-x Exchange point and mark
113 C-M-h Highlight expression
114 M-@ Set mark at end of next word
116 C-c l Insert extra cursor on all lines in region
117 C-c m Ask to insert extra cursor at locations matching selected region
118 M-= Display info about region
120 # Killing and deleting
121 C-M-k Kill s-expression / symbol
122 C-w Kill from mark to point
123 C-y Yank text (paste)
124 M-y Scroll through kill ring (paste buffer)
125 M-_ Select current line
126 M-z <char> Kill until <char>
127 C-k Kill to end of line
128 M-0 C-k Kill to beginning of line
129 C-a C-k C-k Kill current line
130 C-S-Backspace Kill current line
131 C-d Delete next character
133 M-Backspace Delete previous word
134 M-Space Collpase to one space around point
135 M-\ Delete spaces around point
136 C-x C-o Collapse blank lines
137 M-x delete-trailing-whitespace Delete trailing whitespace
142 C-x C-t Transpose lines
143 C-M-t Transpose s-expressions
146 C-x Space Toggle mark rectangle mode
147 C-x r t Replace rectangle with string
150 F3 , F4 Start recording macro, finish recording macro
151 C-u F3 Play last macro then append keys
155 C-x C-j Open direx at current file
156 F8 Toggle flyspell-mode
157 F9 Toggle whitespace mode
159 M-x eshell Run eshell
160 M-x ielm Run Emacs Lisp REPL
161 M-x shell Run bash shell
162 M-x slime Run Common Lisp REPL
163 M-x smerge-mode Resolve merge conflicts
164 M-x restclient Open HTTP client
165 M-x yas-reload-all Reload all snippets
168 C-M-x Eval top-level form
169 C-c C-z Switch to REPL
170 C-c C-c Compile and load the top-level form at point
171 C-c M-k Compile (but not load) the current buffer's file
175 M-& Execute command asynchronously
176 M-| Execute with region
177 C-u M-| Filter with region
180 C-c ^ p Go to previous hunk
181 C-c ^ n Go to next hunk
182 C-c ^ Return Keep current
189 C-M-i Automatically correct word
190 C-; Automatically correct last word
191 <mouse-2> Popup word correction
196 C-c ! p Previous error
198 C-c ! x Disable checker