Shortcut

Emacs Run a command by name Shortcut

The Emacs shortcut to run a command by name is Alt + X on Windows. It's the same on Mac.

Quick Answer

Windows
Alt+X
Mac
Alt+X
Web
Not confirmed yet
EmacsShortcut

Run a command by name

Windows
Alt+X

Type M-x, then the command name, then Enter. Emacs runs any command by name.

Learn More

How to run a command by name in Emacs

  1. Open Emacs and go to where you want to run a command by name.
  2. Press Alt + X on Windows or Alt + X on Mac.

Emacs Run a command by name Shortcut for Windows

Press Alt + X.

Emacs Run a command by name Shortcut for Mac

Press Alt + X.

Emacs Run a command by name 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 run a command by name shortcut?

On Windows, press Alt + X. On a Mac, press Alt + X.

Is there a Mac shortcut to run a command by name in Emacs?

Yes: Alt + X.

Does it work in Emacs for the web?

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

Official source · How we verify