Emacs: Copy Paste, kill-ring

By Xah Lee. Date: . Last updated: .

Undo, Cut, Copy, Paste

undoCtrl+/
Undo
kill-regionCtrl+w
Cut
kill-ring-saveAlt+w
Copy
yankCtrl+y
Paste

Emacs Jargon: Kill, Yank

Paste from Copy History

to paste from kill-ring (storage of copy history):

  1. yankCtrl+y
  2. yank-popAlt+y】 to insert previous copied content.
  3. Press Alt+y again to get earlier copied content. (repeat this step to get earlier)

A history of copied text is called “kill ring”, stored in the variable kill-ring.

View kill-ring Content

To view copy/cut history: Pull the GUI menu [Edit ▸ Paste from kill Menu].

emacs kill ring 2022 10 03
emacs kill ring 2022 10 03

Emacs Copy/Paste