Emacs: Copy/Paste and kill-ring History

By Xah Lee. Date: . Last updated: .

Undo, Cut, Copy, Paste

emacs undo cut copy paste keys
nameemacs keyscommand

In emacs:

Standard Copy/Paste Keys: cua-mode

If you prefer standard keys such as 【Ctrl+c】 for copy, 【Ctrl+x】 for cut 【Ctrl+v】 for paste, then turn on cua-mode. Put this in your init:

;; use standard keys for undo cut copy paste
(cua-mode 1)

Paste from Kill Ring History

Emacs's clipboard (called kill-ring) maintains a history of copy/cut content.

View kill-ring Content

emacs kill-ring
emacs kill-ring

To view copy/cut history:

Pull the GUI menu 〖Edit ▸ Paste from kill Menu〗.

Here's a command that list kill-ring content:

[see Emacs: Show kill-ring]

Paste from kill-ring History

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

Copy/Paste Topic

  1. Copy/Paste and kill-ring History
  2. Copy/Cut Current Line If No Selection
  3. Copy/Cut All or Selection
  4. Paste or Paste Previous
  5. Show kill-ring
  6. Copy to Register
  7. 1 Key to Copy/Paste from Register
  8. Copy Append
  9. Sync Copy/Paste Clipboards with Linux X11

If you have a question, put $5 at patreon and message me.
Or Buy Xah Emacs Tutorial
Or buy a nice keyboard: Best Keyboards for Emacs


Emacs Lisp