Emacs: Copy to Register
What is Register
Emacs has registers that let you store text. (it can also store other data, such as split windows config.)
There are 36 registers, each one is named by a single letter a to z or single digit 0 to 9.
Copy Text to Register
- Select Text
- Alt+x
copy-to-register
【Ctrl+x r s】 - Type a letter or digit, e.g. e, stores the text in register e.
💡 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
Paste from Register
- Alt+x
insert-register
【Ctrl+x r i】 - Type the letter name of the register. e.g. type e to paste from register e.
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 🚀