Notation:
C
means Control
, S
means SHIFT
, M
means Alt
(Meta)
For example, C-x
means hold down the Control
key while typing x
.
normal | boon | action |
C-f / C-b | k / l | move forward/backward by character |
M-f / M-b | j / ; | move forward/backward by word |
C-n / C-p | o / i | move forward/backward by line |
C-a / C-e | u / p | go to line beginning/end |
M-a / M-e | K / L | go to sentence beginning/end |
M-{ / M-} | I / O | go to paragraph beginning/end |
C-x [ / C-x ] | < / > | go to page beginning/end |
C-v | none | scroll to next screen |
M-v | none | scroll to previous screen |
C-M-p | same | scroll-down-line |
C-M-n | same | scroll-up-line |
C-l | none | scroll current line to center, top, bottom |
M-r | same | reposition cursor to center, top, bottom |
M-m | | go to first non-whitespace on line, forward or backward |
C-x C-f | Find and open an existing file, or create a new file |
C-x d | Open directory |
C-c r | Open recently opened file |
C-x C-r | Find and open file read-only |
C-x i | Insert file |
C-x C-s | Save file |
C-x C-w | Save file as |
C-x C-c | Exit Emacs |
C-j | perform ENTER followed by TAB |
C-o | insert blank line |
C-x C-o | remove all blank lines except one |
M-\ | delete all white space around point |
M-x canonically-space-region | fix up spacing and casing in region |
M-u | uppercase word |
M-l | lowercase word |
M-c | capitalize word |
M– M-l | Convert last word to lower case. Note ‘Meta–’ is Meta-minus. |
M– M-u | Convert last word to all upper case. |
M– M-c | Convert last word to lower case with capital initial. |
C-x C-u | uppercase region |
C-x C-l | lowercase region |
C-x 1 | delete other windows |
C-x 2 | split window, above and below |
C-x 3 | split window, side by side |
C-M-v | scroll other window |
C-x o | switch cursor to another window |
C-x 4 b | select buffer in other window |
C-x 4 C-o | display buffer in other window |
C-x 4 f | find file in other window |
C-x 4 d | run dired in other window |
C-RIGHT | grow window narrower |
C-LEFT | grow window wider |
C-DOWN | make window taller |
C-UP | make window smaller |
M-x follow-mode | toggle follow mode |
C-x 4 0 | kill current buffer and delete window |
C-t | transpose two characters |
M-t | transpose two words |
C-x C-t | transpose two lines |
M-x ts | transpose sentences |
M-x tp | transpose paragraphs |
C-x C-q | Toggle read-only mode |
C-u num | repeat following instruction num times |
F12 | spellcheck buffer |
S-F12 | spellcheck word |
i | add word to private dictionary |
r | change word |
a | skip word for this session |
SPACE | skip word |
x | end spellchecking session |
q | abort spell checking session |
C-h | show options screen for spellchecking session |
M-x ispell-change-dictionary | change current dictionary |
C-j | perform ENTER followed by TAB |
M-i | indent from the point to the next TAB-point |
C-w | kill region |
M-w | copy region to kill buffer |
C-y | yank back last thing killed |
M-y | replace last yank with previous kill, cycle kill ring |
M-z char | zap to char |
C-@ / C-SPACE | set mark here |
C-x C-x | Exchange mark and point |
M-@ | mark arg words away |
M-h | mark paragraph |
C-x h | mark entire buffer |
C-x n n | narrow to region |
C-x n p | narrow to page |
C-x n w | widen view |
C-x u | undo |
C-g C-x u | redo |
C-/ | undo |
C-g C-/ | redo |
M-x revert-buffer | revert buffer to its original contents |
C-x r s | save region in register |
C-x r i | insert register contents into buffer |
C-x r SPACE | save value of point in register |
C-x r j | jump to point saved in register |
F3 | record keyboard macro |
F4 | end record keyboard macro / run keyboard macro |
C-F5 | Bookmark set |
S-F5 | List bookmarks |
F5 | Bookmark jump |
M-= | count words in region |
C-u M-= | count words in whole buffer |
C-<SPC> C-<SPC> | set the mark to the mark ring |
C-u C-<SPC> | move point to where the mark was |
<f7> | push current position to the mark ring |
M-<f7> | jump to last position in the mark ring (go back) |
M-x whitespace-mode | toggles rendering of white space |
C-c left / right | redo/undo window configuration |
F9 | Writeroom mode |
S-F9 | modeline toggle |
C-> | Increase width |
C-< | Decrease width |
C-x g | run Magit |
s | stage |
c | commit |
C-c C-c | Execute commit, after having written the commit message |
P | push |
F | pull |
h | show Magit keyboard commands |
q | exit Magit |
M-x draft-mode | Turn on draft-mode |
TAB | expand snippet |
C-c s n | new snippet |
C-c s v | visit snippet file |
C-c w | Turn on wc-mode |
M-x wc | count words in buffer |
M-x wc-reset | Reset wc-mode |
C-c C-w w | set word goal |
C-x C-+ | Zoom in / make the text larger |
C-x C– | Zoom out / make the text smaller |
C-x C-0 | Reset zoom level |
C-c n f | find node, or insert new node |
C-c n i | insert link to node |
C-c n I | insert link to node, without creating a node |
C-c n p | find project |
C-c n t | capture task |
C-c n b | capture inbox |
C-c n d | roam dailies |
Org-sidebar
M-x sb | show sidebar |
M-x sbtree | show tree sidebar |
M-x sbt | toggle sidebar |
M-x sbtreet | toggle tree sidebar |
Hint: use C-x n w
to widen the view of the main org-mode buffer if needed.
M-x tti | insert tracktable |
Mx-ttw | write new tracktable entry |
M-x tts | show tracktable status |
Hint: use C-c &
to get back to where you were prior to updating the tracktable.
Use tag nowc
or noexport
tags for the headings which content you do not want to be counted by the tracktable.
C-c d | run deft |
C-c C-q | quit deft |
TAB | rotate current subtree between states |
S-TAB | rotate entire buffer between states |
C-c C-x C-v | toggle visibility of inline images |
C-c C-n/p | next/previous heading |
C-c C-f/b | next/previous heading, same level |
C-c C-u | backward to higher level heading |
C-c C-j | jump to another place in document |
M-RET | insert new heading/item at current level |
C-RET | insert new heading after subtree |
C-c - | turn line into item, cycle item type |
C-c * | turn item/line into headline |
M-LEFT/RIGHT | promote/demote heading |
M-S-LEFT/RIGHT | promote/demote current subtree |
M-UP/DOWN | move subtree item up/down |
C-c C-x c | clone a subtree |
C-c C-x v | copy visible text |
C-c C-x C-w/M-w | kill/copy subtree |
C-c C-x C-y or C-y | yank subtree |
M-h | mark the element at point. Hitting M-h multiple times will mark next item |
C-c @ | mark subtree |
C-x n s | org-narrow-to-subtree |
C-c C-c | set tags for heading |
C-c C-q | set tags for current heading |
C-u C-c C-q | realign tags in all headings |
C-c C-o | open link at point |
C-u C-c C-l | add link to a file |
C-c c | Run Org-capture |
C-c C-w | Run Org-refile |
C-c C-e | run org-mode export dialog |
C-c C-x t | set timer |
C-c C-x p | pause or restart timer |
C-c C-x a | activate timer |
C-c C-x e | end timer |