Emacs
Shortcuts for Emacs mode
General
Shortcut | Description |
---|---|
Ctrl-x Ctrl-w | Save |
Ctrl-x f | New file |
Ctrl-x h | Select all |
Ctrl-x h | Select all |
Movement
Shortcut | Description |
---|---|
Ctrl f/b | Move forward/backward by one character |
Alt f/b | Move forward/backward by one word |
Ctrl p/n | Move up/down one line |
Ctrl a/e | Move to start/end of line |
Alt a/e | Move forward/backward by one sentence |
Ctrl Up | Move up by one paragraph |
Ctrl Down | Move down by one paragraph |
Alt v | Move up by one page |
Ctrl v | Move down by one page |
Alt Shift , | Move to start of document |
Alt Shift . | Move to end of document |
Alt g g | Go to line |
Ctrl-x Ctrl-Space | Go back |
Ctrl-x Ctrl-Left | Go back |
Ctrl-x Ctrl-Right | Go Forward |
Editing
Shortcut | Description |
---|---|
Ctrl-x Tab | Insert tab |
Ctrl d | Delete next character |
Ctrl h | Delete previous character |
Alt d | Delete next word |
Alt backspace | Delete previous word |
Alt k | Delete to end of sentence |
Ctrl-x Del | Delete to end of sentence |
Ctrl o | Insert new line |
Ctrl t | Transpose two characters |
Alt c | Capitalize next word |
Alt l | Lowercase start of next word |
Ctrl / | Undo |
Ctrl-x u | Undo |
Ctrl Shift - | Undo |
Ctrl z | Undo |
Ctrl Shift z | Redo |
Folding
Shortcut | Description |
---|---|
Ctrl-x Ctrl-h | Fold current section |
Ctrl-x Ctrl-e | Toggle current section fold |
Ctrl-x Ctrl-t | Fold all sections |
Ctrl-x Ctrl-a | Unfold all sections |
Ctrl-X Ctrl-1 | Fold all sections |
Ctrl-X Ctrl-2 | Fold level 2 |
Ctrl-X Ctrl-3 | Fold level 3 |
Ctrl-X Ctrl-4 | Fold level 4 |
Ctrl-X Ctrl-5 | Fold level 5 |
Ctrl-X Ctrl-6 | Fold level 6 |
Tables
Shortcut | Description |
---|---|
Alt Shift Left | Delete column |
Alt Shift Right | Add column |
Alt Shift Up | Delete row |
Alt Shift Down | Add row |
Alt Left | Move column left |
Alt Right | Move column right |
Alt Up | Move row up |
Alt Down | Move row down |
Ctrl-X Ctrl-C | Reformat table |
Ctrl Alt 6 | Sort by current column, ascending |
Ctrl Shift Alt 6 | Sort by current column, descending |