Emacs Copy and Paste

July 22, 2018

Simple and sweet. How to cut, copy, and paste in emacs.

  • Cut selected text: C-w
  • Copy selected text: M-w
  • Paste text: C-y
  • Copy current line without newline: C-a C-SPC C-e M-w
  • Yank whole line (keep pressing C-k for multiple lines): C-a C-k
  • Un-yank: C-y

Set kill-whole-line to nil if you don't want yank to include the newline.

Related Posts