Skip to content

↑↓ moveEnter openEsc close

Emacs keyboard shortcuts

Emacs 30.1 · 62 shortcuts · checked Nov 2026 · Source: GNU Project docs

GNU Emacs is the extensible editor built around Control and Meta key chords. Meta is Alt on Windows and Linux and Option on a Mac.

Most used Emacs keyboard shortcuts

The Emacs shortcuts worth learning first. The full list follows, grouped by task.

62 shortcuts

Small screen: your system's keys only. Pick another system in the tabs above.

ActionMacWindowsLinux
Open (find) a fileCtrlX,CtrlFCtrlX,CtrlFCtrlX,CtrlF
Save the bufferCtrlX,CtrlSCtrlX,CtrlSCtrlX,CtrlS
Save as (write file)CtrlX,CtrlWCtrlX,CtrlWCtrlX,CtrlW
Save all buffersCtrlX,SCtrlX,SCtrlX,S
Switch to another bufferCtrlX,BCtrlX,BCtrlX,B
List all buffersCtrlX,CtrlBCtrlX,CtrlBCtrlX,CtrlB
Close (kill) a bufferCtrlX,KCtrlX,KCtrlX,K
Quit EmacsCtrlX,CtrlCCtrlX,CtrlCCtrlX,CtrlC

Commands

5 shortcuts
ActionMacWindowsLinux
Run a command by nameOptionXAltXAltX
Cancel the current commandCtrlGCtrlGCtrlG
UndoCtrl/orCtrlX,UCtrl/orCtrlX,UCtrl/orCtrlX,U
Redo| GUI Emacs; terminals cannot send this key.CtrlShift/CtrlShift/CtrlShift/
Repeat or modify the next commandCtrlUCtrlUCtrlU

Moving

16 shortcuts
ActionMacWindowsLinux
Forward one characterCtrlFCtrlFCtrlF
Back one characterCtrlBCtrlBCtrlB
Next lineCtrlNCtrlNCtrlN
Previous lineCtrlPCtrlPCtrlP
Forward one wordOptionFAltFAltF
Back one wordOptionBAltBAltB
Start of the lineCtrlACtrlACtrlA
End of the lineCtrlECtrlECtrlE
Start of the bufferOptionShift,AltShift,AltShift,
End of the bufferOptionShift.AltShift.AltShift.
Scroll down a screenCtrlVCtrlVCtrlV
Scroll up a screenOptionVAltVAltV
Recenter the screen on the cursorCtrlLCtrlLCtrlL
Go to a line numberOptionG,GAltG,GAltG,G
Forward one paragraphOptionShift]AltShift]AltShift]
Back one paragraphOptionShift[AltShift[AltShift[

Editing

19 shortcuts
ActionMacWindowsLinux
Delete the next characterCtrlDCtrlDCtrlD
Delete (kill) the next wordOptionDAltDAltD
Delete (kill) the previous wordOptionBackspaceAltBackspaceAltBackspace
Kill to the end of the lineCtrlKCtrlKCtrlK
Set the mark (start a selection)CtrlSpaceCtrlSpaceCtrlSpace
Select the whole bufferCtrlX,HCtrlX,HCtrlX,H
Cut (kill) the selectionCtrlWCtrlWCtrlW
Copy the selectionOptionWAltWAltW
Paste (yank)CtrlYCtrlYCtrlY
Replace the paste with an older killRight after Ctrl+YOptionYAltYAltY
Open a new line after the cursorCtrlOCtrlOCtrlO
Swap two charactersCtrlTCtrlTCtrlT
Swap two wordsOptionTAltTAltT
Uppercase the wordOptionUAltUAltU
Lowercase the wordOptionLAltLAltL
Capitalize the wordOptionCAltCAltC
Comment or uncommentOption;Alt;Alt;
Rewrap the paragraphOptionQAltQAltQ
Expand the word from other textOption/Alt/Alt/
ActionMacWindowsLinux
Search forward as you typeCtrlSCtrlSCtrlS
Search backward as you typeCtrlRCtrlRCtrlR
Find and replace, asking each timeOptionShift5AltShift5AltShift5

Windows

5 shortcuts
ActionMacWindowsLinux
Split the window top and bottomCtrlX,2CtrlX,2CtrlX,2
Split the window side by sideCtrlX,3CtrlX,3CtrlX,3
Go to the other windowCtrlX,OCtrlX,OCtrlX,O
Close this windowCtrlX,0CtrlX,0CtrlX,0
Close every other windowCtrlX,1CtrlX,1CtrlX,1

Macros and help

5 shortcuts
ActionMacWindowsLinux
Start recording a macroF3orCtrlX,Shift9F3orCtrlX,Shift9F3orCtrlX,Shift9
Stop recording, or run the macroF4F4F4
What does this key do?CtrlH,KCtrlH,KCtrlH,K
Describe a functionCtrlH,FCtrlH,FCtrlH,F
Open the Emacs tutorialCtrlH,TCtrlH,TCtrlH,T
Show the key map: which keys Emacs uses mostDarker orange = used by more shortcuts

Open, save and switch files in Emacs

Move around in Emacs: lines, words, end of file and go to line

Select all, copy, paste and undo in Emacs

Emacs calls cutting killing and pasting yanking: C-w kills the region, M-w copies it, and C-y yanks it back.

Accented letters
C-x 8 followed by the accent and letter types it: C-x 8 ' e gives é, and C-x 8 Enter lets you search any character by name.

Split windows, macros and built-in help in Emacs

Emacs keyboard shortcuts: questions

What is the Meta key in Emacs?
Meta is Alt on Windows and Linux and Option on a Mac. Pressing Esc and then the key also works on any keyboard.
How do I quit Emacs?
Press Ctrl+X then Ctrl+C. Emacs asks before closing if a buffer has unsaved changes.
Do Doom Emacs and Spacemacs use these shortcuts?
They keep most of them but put Vim keys (evil-mode) on top and gather commands under Space as a leader key, such as SPC f f to open a file. The C-x and C-h keys here still work.

These are the default key bindings in GNU Emacs 30.1, as published by GNU Project. Shortcuts that need an extension, an add-in or a changed keymap are left out. Where two combinations do the same thing, both are shown.

Single-system lists: Emacs keyboard shortcuts for Mac, Emacs keyboard shortcuts for Windows, Emacs keyboard shortcuts for Linux.

Each shortcut has its own page with the keys for every system, related shortcuts and the same action in other apps. The printable cheat sheet fits the whole list on one or two pages.