Show Menu
Cheatography

Emacs Cheat Sheet (DRAFT) by

Emacs keybindings for my configuration

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

Editing

Forward kill word
M-d
Backward kill word
M-- M-d
Complete word
C-c c
Kill sexp
C-M-k
Set fill column
C-x f
Set fill prefix
C-x .
Comment DWIM
M-;
Comment as a box
M-x commen­t-box
Comment line
C-x C-;

Moving

First non-wh­ite­space char
M-m
Forward sexp
C-M-f
Backward sexp
C-M-b
Down inside list
C-M-d
Up inside list
C-M-u
Previous list
C-M-p
Next list
C-M-n
Goto line
M-g M-g
Pop mark
C-u C-<­spc>
Mark paragraph
M-h
Mark next defun
C-M-h
Mark next sexp
C-M-<s­pc>

Searching

Find
C-x c /
Find in file
C-x c g
Find in project
C-x c f
Locate
C-x c l
Run regexp
C-x c r
Search region in google
C-c / g
Increm­ental regexp
C-M-s / C-M-r
Increm­ental string
C-s / C-r
Toggle case sensit­ivity
M-s c
Toggle regex mode
M-s r
Toggle word mode
M-s w
Toggle symbol mode
M-s _
Imenu
C-x c i
Occur
M-s o

Info/help browser

Previous / Next node
[ and ]
Back / Forward history
l and r
Previous / Next sibling
n and p
Up a level
u
Scroll one screen
SPC
Prompt for menu item
m
 

Projects

Switch to project
C-c p p
Switch to project perspe­ctive
C-c p z
List all files
C-c p f
List files with context
C-c p g
List all direct­ories
C-c p d
Open root directory
C-c p D
Switch to alternate file
C-c p a
Switch to test file
C-c p t
Find in open buffers
C-c p o
Find with Ag
C-c p s s
Replace in all files
C-c p r
Invalidate cache
C-c p i
Find tag
C-c p j
Regenerate TAGS
C-c p R
Save all buffers
C-c p S
Kill all buffers
C-c p k
Shell command at root
C-c p !
Async shell command at root
C-c p &
Compile
C-c p c
Run tests
C-c p P
Use a prefix C-u to invalidate the cache prior.
Use a 4 after C-c p to open in other window.

Tables

Re-align
C-c C-c
Shift column
M-<­lef­t>/­<ri­ght>
Shift row
M-<­up>­/<d­own>
Kill column
M-S-<l­eft>
Kill row
M-S-<u­p>
Insert column before
M-S-<r­igh­t>
Insert row above
M-S-<d­own>
Insert line below
C-c <re­t>
Insert line above
C-u C-c -
Sort lines
C-c ^
Edit long entries
C-c `
Sum column
C-c +
Toggle prefix
C-c C-x
 

Help

Help for prefix
<pr­efi­x> C-h
Info manual
C-h i
Apropos
C-x c a
Describe mode
C-h m
Describe function
C-h f
Describe variable
C-h v
Describe key
C-h k
Man pages
C-x c m
Info at pont
C-x c h i

Org

Switch to startup visibility
C-u C-u <ta­b>
Show everything
C-u C-u C-u <ta­b>
Reveal around point
C-c C-r
Show subtree headings
C-c C-k
Show direct children
C-c <ta­b>
Subtree to indirect buffer
C-c C-x b
Copy visible in region
C-c C-x v
Next/prev same level
C-c f/b
Next/prev visible
C-c n/p
Up a level
C-c u
Goto/S­earch
C-c j
Promot­e/d­emote subtree
M-S-ri­ght­/left
Move subtree up/down
M-S-up­/down
Mark element
M-h
Mark subtree
C-c @
Clone subtree
C-c C-x c
Refile subtree
C-c w
Sort same level
C-c ^
Narrow
C-x n
Promote to heading
C-c *
Cycle list bullets
C-c -
List item to headline
C-c *
Entire list to subtree
C-c C-*
New checkbox item
M-S-<r­et>
Add drawer
C-c C-x d
Prefix all kill/yank commands with C-c C-x to operate on subtrees.