Show Menu
Cheatography

emacs-general Keyboard Shortcuts (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Space

M-SPC
squash multiple whitespace
just-o­ne-­space
M-\
join two words
delete­-ho­riz­ont­al-­space
M-^
join two lines
delete­-in­den­tation

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 horizo­ntally
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/mi­ddl­e/b­ott­om...
M-r
 
reposition cursor (=point)
C-l
 
reposition screen
previo­us...
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/Co­mmand 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/­cha­racters
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­/Re­place

C-s
search forward
M-C-s
regex search forward
M-x replace-string
replace string
(unbound by default)
M-x replace-regex
replace regex
(unbound by default)
 

Shell

M-!
shell-­command
M-|
shell-­com­man­d-o­n-r­egion
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 !
new header level 1 ===
C-c C-t @
new header level 2 ---
C-c -
new horizontal rule
Mainte­nance
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-<­lef­t|r­igh­t>
promot­e/d­emote items
 
M-S-<u­p|d­own>
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)