Emacs Advent Calendar 05: Registers for Text
Using the kill ring to paste snippets of text sometimes just does not cut it. In these cases, registers come in handy.
Registers are similar to variables: They are named places where a piece of text (and other stuff) can be stored. A register's name is a single character, i.e. a number or a letter (case sensitive). Here, it will be denoted here by a generic 'R'.
To copy the content of the region into register R, use
C-x r s R.
To insert the text from register R at point, use
C-x r i R.
More information on this can be found in section 13.2 (Saving Text in Registers) of the Emacs Reference Manual.Tags: emacs
This text by Ludger Sandig is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.