Skip to content

↑↓ moveEnter openEsc close

Select the whole buffer in Emacs

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

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

A chord: press each combination in turn.

More Emacs shortcuts: editing

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
Cut (kill) the selectionCtrlWCtrlWCtrlW
Copy the selectionOptionWAltWAltW
Paste (yank)CtrlYCtrlYCtrlY
Replace the paste with an older killOptionYAltYAltY
Open a new line after the cursorCtrlOCtrlOCtrlO

All 19 in editing · All 62 Emacs shortcuts