Emacs: Copy to Register
Emacs has registers that let you store text.
To copy text to register:
- Select Text, then Alt+x
copy-to-register
【Ctrl+x r s】, then type e. This store the text in register e. - To paste, Alt+x
insert-register
【Ctrl+x r i】, then type e. This paste text stored in register e.
Register name can be any single letter a to z or single digit 0 to 9.
💡 TIP: If you have text that you frequently want to paste, such as templates, a better solution is to use emacs abbrevs. [Emacs: Abbrev Mode by Lisp Code]
Reference
Emacs Copy/Paste
- Emacs: Select Text (mark and region)
- Emacs: Copy Paste, kill-ring
- Emacs Init: Standard Copy Cut Paste Keys
- Emacs: Copy Current Line If No Selection 🚀
- Emacs: Copy Buffer or Selection 🚀
- Emacs: Paste or Paste Previous 🚀
- Emacs: Show Copy History (kill-ring) 🚀
- Emacs: Copy to Register
- Emacs: Copy to Register 1 🚀
- Emacs: Append/Clear Register 1 🚀