]> code.delx.au - dotemacs/blob - README.txt
updated README
[dotemacs] / README.txt
1 # References
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
4
5 # General commands
6 C-x C-c Quit Emacs
7 C-u C-x C-c Save and quit
8 C-g Cancel command
9 C-/ Undo
10 C-g C-/ Undo undo
11 C-x z Repeat last command
12 M-x Execute 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
18
19 # Help
20 C-h C-h Help
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
25
26 # Search
27 C-s Search forward (ivy/swiper mode)
28 C-r Resume ivy search
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
34
35 # Files/buffers
36 C-x C-s Save current buffer
37 C-x s Save some buffers
38 C-x C-w Write buffer to file
39 C-x C-f Find file
40 C-x f Find 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
45 C-x k Kill buffer
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
51
52 # Windows/frames
53 C-x o Switch to other window
54 C-x 0 Delete window
55 C-x 1 Switch to single window
56 C-x 2 Split vertically
57 C-x 3 Split horizontally
58 C-x - Shrink window
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)
63
64 # Movement
65 M-m Jump back to start of indentation
66 M-r Jump to window top/bottom/middle
67 M-g M-g Jump to line
68 M-g Tab Jump to column
69 M-g j Jump to character
70 C-a Beginning of line
71 C-e End of line
72 C-p Back one line
73 C-n Forward one line
74 C-b Back one character
75 C-n Forward one character
76 M-b Back a word
77 M-f Forward a word
78 M-a Backward sentence
79 M-e Forward sentence
80 M-v Back page
81 C-v Forward page
82 M-{ Back one paragraph
83 M-} Forward one paragraph
84 M-< Top of file
85 M-> End of file
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
91
92 # Text formatting
93 M-/ Auto-complete
94 M-; Comment line or region
95 M-i Change inner region
96 M-q Reformat paragraph
97 M-l Lower case word
98 M-u Upper case word
99 M-c Capitalise word
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
107 C-q Quoted insert
108
109 # Marking
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
116 C-= Expand region
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
120
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
133 M-d Delete next word
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
139
140 # Transposing
141 C-t Transpose chars
142 M-t Transpose words
143 C-x C-t Transpose lines
144 C-M-t Transpose s-expressions
145
146 # Rectangle
147 C-x Space Toggle mark rectangle mode
148 C-x r t Replace rectangle with string
149
150 # Macros
151 F3 , F4 Start recording macro, finish recording macro
152 C-u F3 Play last macro then append keys
153 F4 Play back macro
154
155 # Mode switching
156 C-x C-j Open dired at current file
157 F8 Toggle flyspell-mode
158 F9 Toggle whitespace mode
159 F10 Toggle word wrap
160 M-x yas-reload-all Reload all snippets
161 M-x restclient Open HTTP client
162 M-x ielm Run Emacs Lisp REPL
163 M-x slime Run Common Lisp REPL
164
165 # Lisp
166 C-M-x Eval top-level form
167 C-c C-z Switch to REPL
168 C-c C-c Compile and load the top-level form at point
169 C-c M-k Compile (but not load) the current buffer's file
170
171 # Shell
172 M-! Execute command
173 M-& Execute command asynchronously
174 M-| Execute with region
175 C-u M-| Filter with region
176 M-x shell Start a shell
177
178 # Flyspell
179 M-$ Correct word
180 C-M-i Automatically correct word
181 C-; Automatically correct last word
182 <mouse-2> Popup word correction
183
184 # Flycheck
185 C-c ! v Verify setup
186 C-c ! n Next error
187 C-c ! p Previous error
188 C-c ! l List errors
189 C-c ! x Disable checker