Show Menu
Cheatography

Emacs Cheat Sheet (DRAFT) by

Emacs Cheat Sheet

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

Emacs Basics

Emacs Key
Use
C-x C-s
Save file
C-x #
Close (save with y)
C-x C-c
Close (save with y)
C-x C-f
Open buffer
C-x C-k
Kill buffer
C-g
Cancel command
C-/
Undo
F4
Goto line
M-d
Kill word

Searching

Emacs Key
Use
C-s
Search forward
C-r
Search backward
C-s C-s
Search forward again
C-r C-r
Search backward again
Whilst in C-s or C-r, repeating C-s or C-r will jump to the next occurr­ence.
 

Copy/Paste

Emacs Key
Use
C-w
Cut
M-w
Copy
C-y
Paste
Select a region using Ctrl + Space

Regions

Emacs Key
Use
Backspace
Delete selected region
C-x r k
Kills the region of the region rectangle
C-x r o
Inserts blank spaces in region rectangle
C-x r c
Clears the region rectangle by replacing text with spaces
C-x r t string <RE­T>
Replaces region rectangle with string
Select a region using Ctrl + Space
 

Windows

Emacs Key
Use
C-x 1
Single window
C-x 2
Split window in two
C-x 3
Split window in three
C-x o
Switch window
M-x delete­-window
Delete window
M-x delete­-ot­her­-window
Delete other window