Skip to content

↑↓ moveEnter openEsc close

Cancel the current command in Emacs

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

In GNU Emacs, press Ctrl+G on Mac, Windows, Linux.

What else uses Ctrl+G?

More Emacs shortcuts: commands

ActionMacWindowsLinux
Run a command by nameOptionXAltXAltX
UndoCtrl/orCtrlX,UCtrl/orCtrlX,UCtrl/orCtrlX,U
RedoCtrlShift/CtrlShift/CtrlShift/
Repeat or modify the next commandCtrlUCtrlUCtrlU

All 62 Emacs shortcuts