Emacs Shortcuts

Emacs keyboard shortcuts for navigation and editing

Movement

C-f # forward character
C-b # backward character
C-n # next line
C-p # previous line
C-a # start of line
C-e # end of line
M-< # start of buffer
M-> # end of buffer

Editing

C-d # delete character
M-d # delete word
C-k # kill line
C-w # kill region
M-w # copy region
C-y # yank (paste)
C-/ # undo
C-Space # set mark

Buffers

C-x b # switch buffer
C-x C-b # list buffers
C-x k # kill buffer
C-x C-s # save buffer
C-x C-w # save as
C-x C-f # find file

Windows

C-x 2 # split horizontally
C-x 3 # split vertically
C-x o # other window
C-x 0 # delete window
C-x 1 # delete other windows

Search & Commands

C-s # search forward
C-r # search backward
M-x # execute command
M-% # query replace
C-h k # describe key
C-h f # describe function