Shortcut

Emacs Cancel the current command Shortcut

The Emacs shortcut to cancel the current command is Ctrl + G on Windows. It's the same on Mac.

Quick Answer

Windows
Ctrl+G
Mac
Ctrl+G
Web
Not confirmed yet
EmacsShortcut

Cancel the current command

Windows
Ctrl+G

Stop a command that is running, or abandon a command you have started typing.

Tip: C-g is the panic button: it cancels a partially typed command, a search, or a command still running.

Learn More

How to cancel the current command in Emacs

  1. Open Emacs and go to where you want to cancel the current command.
  2. Press Ctrl + G on Windows or Ctrl + G on Mac.

Tip: C-g is the panic button: it cancels a partially typed command, a search, or a command still running.

Emacs Cancel the current command Shortcut for Windows

Press Ctrl + G.

Emacs Cancel the current command Shortcut for Mac

Press Ctrl + G.

Emacs Cancel the current command Shortcut for Emacs Web

We haven't confirmed a Emacs Web shortcut for this yet.

Version note: verify against the GNU Emacs Manual before publishing

Related Keyboard Shortcuts

Frequently asked questions

What is the Emacs cancel the current command shortcut?

On Windows, press Ctrl + G. On a Mac, press Ctrl + G.

Is there a Mac shortcut to cancel the current command in Emacs?

Yes: Ctrl + G.

Does it work in Emacs for the web?

We haven't confirmed a web version shortcut for this yet.

Official source · How we verify