Shortcut

Emacs Join two lines Shortcut

The Emacs shortcut to join two lines is Alt + ^ on Windows. It's the same on Mac.

Quick Answer

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

Join two lines

Windows
Alt+^

Delete the newline between the current line and the previous one, keeping indentation sensible (delete-indentation).

Learn More

How to join two lines in Emacs

  1. Open Emacs and go to where you want to join two lines.
  2. Press Alt + ^ on Windows or Alt + ^ on Mac.

Emacs Join two lines Shortcut for Windows

Press Alt + ^.

Emacs Join two lines Shortcut for Mac

Press Alt + ^.

Emacs Join two lines 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 join two lines shortcut?

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

Is there a Mac shortcut to join two lines 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