Shortcut
Emacs Delete whitespace around point Shortcut
The Emacs shortcut to delete whitespace around point is Alt + \ on Windows. It's the same on Mac.
Quick Answer
- Windows
- Alt+\
- Mac
- Alt+\
- Web
- Not confirmed yet
EmacsShortcut
Delete whitespace around point
Remove all spaces and tabs on either side of the cursor (delete-horizontal-space).
How to delete whitespace around point in Emacs
- Open Emacs and go to where you want to delete whitespace around point.
- Press Alt + \ on Windows or Alt + \ on Mac.
Emacs Delete whitespace around point Shortcut for Windows
Press Alt + \.
Emacs Delete whitespace around point Shortcut for Mac
Press Alt + \.
Emacs Delete whitespace around point 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 delete whitespace around point shortcut?
On Windows, press Alt + \. On a Mac, press Alt + \.
Is there a Mac shortcut to delete whitespace around point in Emacs?
Yes: Alt + \.
Does it work in Emacs for the web?
We haven't confirmed a web version shortcut for this yet.
Official source · How we verify