This is a draft cheat sheet. It is a work in progress and is not finished yet.
Space
M-SPC |
squash multiple whitespace just-one-space
|
M-\ |
join two words delete-horizontal-space
|
M-^ |
join two lines delete-indentation
|
Windows
C-x 0 |
delete current window |
C-x 1 |
delete all except current |
C-x 2 |
split window vertically |
C-x 3 |
split window horizontally |
C-x 0 |
jump to next window |
Navigation (jump to...)
M-m |
|
first non-space on line |
M-g M-g |
|
move to line |
M-g TAB |
|
move to column |
cycle top/middle/bottom... |
M-r |
|
reposition cursor (=point) |
C-l |
|
reposition screen |
previous... |
next... |
C-a |
C-e |
line |
M-a |
M-e |
sentence |
C-M-a |
C-M-e |
defun |
C-v |
M-v |
page (window) |
M-{ |
M-} |
paragraph |
C-x [ |
C-x ] |
page |
M-< |
M-> |
top (bottom) |
Key/Command Binding
C-h f |
describe command |
C-h b |
describe all key bindings |
C-h m |
describe binding for current mode |
C-h k |
describe key binding |
C-h c |
describe key briefly |
C-h a |
apropos |
|
|
Marking Regions
C-SPC |
Start marking (then use jump commands) |
S-<arrow> |
mark lines/characters |
M-h |
mark paragraph |
C-M-h |
mark defun |
C-x C-p |
mark page |
C-x h |
mark buffer |
M-@ |
mark next word |
C-M-@ |
mark balanced expression |
C-x C-x |
jump to beg/end of mark |
Region Actions
C-w |
kill region (=cut) |
M-w |
yank region (=copy) |
C-M-\ (or tab) |
indent |
Search/Replace
C-s |
search forward |
M-C-s |
regex search forward |
|
replace string (unbound by default) |
|
replace regex (unbound by default) |
|
|
Shell
M-! |
|
M-| |
shell-command-on-region
|
C-u [...] |
insert (above) output into buffer |
Markdown Mode
headers |
C-c C-t 1..6 |
new header level 1..6 ###
|
C-c C-t ! |
|
C-c C-t @ |
|
C-c - |
new horizontal rule |
Maintenance |
C-c C-c p |
compile (temp file) -> browser |
C-c C-c v |
compile (html file) -> browser |
C-c C-c n |
renumber ordered list |
C-c C-c ] |
normalize heading rules |
Lists |
M-<up | down> |
move list items up|down |
M-<left|right> |
promote/demote items |
|
M-S-<up|down> |
move sections up|down |
Navigation |
C-c C-n |
next visible heading |
C-c C-p |
prev visible heading |
C-c C-u |
upper level heading |
C-M-a |
prev defun (section) |
C-M-e |
next defun (section) |
|