Emacs

Shortcuts for Emacs mode

General

ShortcutDescription
Ctrl-x Ctrl-wSave
Ctrl-x fNew file
Ctrl-x hSelect all
Ctrl-x hSelect all

Movement

ShortcutDescription
Ctrl f/bMove forward/backward by one character
Alt f/bMove forward/backward by one word
Ctrl p/nMove up/down one line
Ctrl a/eMove to start/end of line
Alt a/eMove forward/backward by one sentence
Ctrl UpMove up by one paragraph
Ctrl DownMove down by one paragraph
Alt vMove up by one page
Ctrl vMove down by one page
Alt Shift ,Move to start of document
Alt Shift .Move to end of document
Alt g gGo to line
Ctrl-x Ctrl-SpaceGo back
Ctrl-x Ctrl-LeftGo back
Ctrl-x Ctrl-RightGo Forward

Editing

ShortcutDescription
Ctrl-x TabInsert tab
Ctrl dDelete next character
Ctrl hDelete previous character
Alt dDelete next word
Alt backspaceDelete previous word
Alt kDelete to end of sentence
Ctrl-x DelDelete to end of sentence
Ctrl oInsert new line
Ctrl tTranspose two characters
Alt cCapitalize next word
Alt lLowercase start of next word
Ctrl /Undo
Ctrl-x uUndo
Ctrl Shift -Undo
Ctrl zUndo
Ctrl Shift zRedo

Folding

ShortcutDescription
Ctrl-x Ctrl-hFold current section
Ctrl-x Ctrl-eToggle current section fold
Ctrl-x Ctrl-tFold all sections
Ctrl-x Ctrl-aUnfold all sections
Ctrl-X Ctrl-1Fold all sections
Ctrl-X Ctrl-2Fold level 2
Ctrl-X Ctrl-3Fold level 3
Ctrl-X Ctrl-4Fold level 4
Ctrl-X Ctrl-5Fold level 5
Ctrl-X Ctrl-6Fold level 6

Tables

ShortcutDescription
Alt Shift LeftDelete column
Alt Shift RightAdd column
Alt Shift UpDelete row
Alt Shift DownAdd row
Alt LeftMove column left
Alt RightMove column right
Alt UpMove row up
Alt DownMove row down
Ctrl-X Ctrl-CReformat table
Ctrl Alt 6Sort by current column, ascending
Ctrl Shift Alt 6Sort by current column, descending