Shortcut

Emacs Kill the rest of the line Shortcut

The Emacs shortcut to kill the rest of the line is Ctrl + K on Windows. It's the same on Mac.

Quick Answer

Windows
Ctrl+K
Mac
Ctrl+K
Web
Not confirmed yet
EmacsShortcut

Kill the rest of the line

Windows
Ctrl+K

Cut from the cursor to the end of the line, or whole lines when the cursor is already at the line's end (kill-line).

Learn More

How to kill the rest of the line in Emacs

  1. Open Emacs and go to where you want to kill the rest of the line.
  2. Press Ctrl + K on Windows or Ctrl + K on Mac.

Emacs Kill the rest of the line Shortcut for Windows

Press Ctrl + K.

Emacs Kill the rest of the line Shortcut for Mac

Press Ctrl + K.

Emacs Kill the rest of the line 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 kill the rest of the line shortcut?

On Windows, press Ctrl + K. On a Mac, press Ctrl + K.

Is there a Mac shortcut to kill the rest of the line in Emacs?

Yes: Ctrl + K.

Does it work in Emacs for the web?

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

Official source · How we verify