Cheatography
https://cheatography.com
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 comment-box |
Comment line |
C-x C-; |
Moving
First non-whitespace 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-<spc> |
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 |
Incremental regexp |
C-M-s / C-M-r |
Incremental string |
C-s / C-r |
Toggle case sensitivity |
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 perspective |
C-c p z |
List all files |
C-c p f |
List files with context |
C-c p g |
List all directories |
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-<left>/<right> |
Shift row |
M-<up>/<down> |
Kill column |
M-S-<left> |
Kill row |
M-S-<up> |
Insert column before |
M-S-<right> |
Insert row above |
M-S-<down> |
Insert line below |
C-c <ret> |
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 |
<prefix> 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 <tab> |
Show everything |
C-u C-u C-u <tab> |
Reveal around point |
C-c C-r |
Show subtree headings |
C-c C-k |
Show direct children |
C-c <tab> |
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/Search |
C-c j |
Promote/demote subtree |
M-S-right/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-<ret> |
Add drawer |
C-c C-x d |
Prefix all kill/yank commands with C-c C-x to operate on subtrees.
|