Emacs: Copy/Paste and kill-ring History

By Xah Lee. Date: . Last updated: .

Undo, Cut, Copy, Paste

emacs undo cut copy paste keys
namecua mode keysemacs 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)

Show kill-ring

Emacs: Show kill-ring

Copy/Paste Topic

  1. Emacs: Copy/Paste and kill-ring History
  2. Emacs: Copy/Cut Current Line If No Selection
  3. Emacs: Copy/Cut All or Selection
  4. Emacs: Paste or Paste Previous
  5. Emacs: Show kill-ring
  6. Emacs: Copy to Register
  7. Emacs: 1 Key to Copy/Paste from Register
  8. Emacs: Copy Append
  9. Emacs: Copy Rectangle Region to kill-ring
  10. Emacs: Sync Copy/Paste Clipboards with Linux X11
Like my tutorial? Put $5 at patreon

Or Buy Xah Emacs Tutorial

Or buy a nice keyboard: Best Keyboard for Emacs

Ask me question on patreon