This cheat sheet serves as a reference for some of Doom’s most common/helpful commands.
The Emacs notation for modifiers are:
- M-: Meta (i.e. alt or option)
- s-: Super (i.e. command or windows key)
- S-: Shift
- C-: Ctrl
For evil users
This list is not exhaustive. To look up what keys are available to you check out:
- SPChk followed by a key sequence to look up documentation on any command bound to it.
- SPChbb to search keybinds available in the current context.
See “What are <leader> and <localleader> keys?” to understand where the SPC prefix come from.
Leaving Emacs
| Key | Description |
|---|---|
:qa |
Quit Emacs |
:wqa |
Save all buffers and quit Emacs |
| SPCqq | Quit Emacs |
| SPCqr | Restart Emacs and restore session |
Finding/saving files
| Key | Description |
|---|---|
| SPCSPC or SPCpf | Jump to file in project (like Atom/Sublime Text’s goto-anywhere) |
| SPC. or SPCff | Explore files in current directory |
| SPCfS-f | Jump to file under current directory (recursive) |
| SPCfs | Save file |
| SPCfS-s | Save file as (prompts for location) |
Buffer management
| Key | Description |
|---|---|
| SPC, or SPCbb | Switch to another buffer |
| SPC< or SPCbS-b | Switch to another buffer across workspaces |
Search (and Replace)
| Key | Description |
|---|---|
| SPC/ or SPCsp | Search across current project |
| SPCsS-p | Search another project (prompts you to select one) |
| SPCsd | Search in current directory (recursive) |
| SPCsS-d | Search in another directory (recursive) |
Search & Replace: C-cC-e after a search command to activate
wgrep-mode. Now you may edit the results. Later, press C-cC-c (or ZZ , for evil users) to commit your changes.
Scratch buffer
| Key | Description |
|---|---|
| SPCx or SPCbx | Open global scratch buffer in a popup |
| SPCbS-x | Switch to global scratch buffer in current window |
| SPCpx | Open project-local scratch buffer in a popup |
| SPCpS-x | Switch to project-local scratch buffer in current window |
Window management
The following keys are all available under SPCw as well, if you prefer.
| Key | Description |
|---|---|
| C-ws | Split the window horizontally |
| C-wv | Split the window vertically |
| C-wd | Delete current window |
| C-w {h,j,k,l} | Select window in direction (left, below, above, right, respectively) |
| C-w {S-h,S-j,S-k,S-l} | Swap current window with window in direction |
| C-w {C-S-h,C-S-j,C-S-k,C-S-l} | Move current window to edge of frame in direction |
| C-wu or C-wC-r | Undo or redo last change to window configuration |
| C-wo | Enlargen current window. Again to undo. |
| C-wmm | Delete other windows. Again to undo. |
| {N}C-w| | Change width of current window to N (a number) |
| {N}C-w_ | Change height of current window to N lines |
For vanilla users
This reference sheet is for users with Evil disabled.
This list is not exhaustive. To look up what keys are available to you check out:
- C-chk followed by a key sequence to look up documentation on any command bound to it.
- C-chbb to search keybinds available in the current context.
There is no cheat sheet for vanilla users yet. For the time being refer to: