Shortcut

Emacs Mark the whole buffer Shortcut

The Emacs shortcut to mark the whole buffer is Ctrl + X, H on Windows. It's the same on Mac.

Quick Answer

Windows
Ctrl+X, H
Mac
Ctrl+X, H
Web
Not confirmed yet
EmacsShortcut

Mark the whole buffer

Windows
Ctrl+X, H

Select every character in the buffer (mark-whole-buffer).

Learn More

How to mark the whole buffer in Emacs

  1. Open Emacs and go to where you want to mark the whole buffer.
  2. Press Ctrl + X, H on Windows or Ctrl + X, H on Mac.

Emacs Mark the whole buffer Shortcut for Windows

Press Ctrl + X, H.

Emacs Mark the whole buffer Shortcut for Mac

Press Ctrl + X, H.

Emacs Mark the whole buffer 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 mark the whole buffer shortcut?

On Windows, press Ctrl + X, H. On a Mac, press Ctrl + X, H.

Is there a Mac shortcut to mark the whole buffer in Emacs?

Yes: Ctrl + X, H.

Does it work in Emacs for the web?

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

Official source · How we verify