|Copy the region into register R|
|Copy the region-rectangle into register R|
|Save the position of point (and the name of the current buffer) into register R|
|Copy the frame configuration into register R|
|Copy the window configuration into register R|
R is the register name that you choose, consisting of a single character. Register names are case-sensitive.
For example, to copy the current region to a register you name
‘C-x r s 1’. To insert the contents of that register at point, use
‘C-x r i 1’.
Example use of storing number in registers:
C-u 1000 C-x r n x Store 1000 in register x.
C-x r i x – Insert the number in register x into the buffer.
C-x r + x – Increment the number by one.
See the Node Keeping Numbers in Registers in the EmacsManual.
‘C-x r f’(
‘C-x r j’(
‘C-x r j e’to open DotEmacs,
‘C-x r j i’to open an
(set-register ?e '(file . "~/.emacs")) (set-register ?i '(file . "~/org/ideas.org"))
C-x r i, you may use a prefix argument to jump to the end of the inserted text, but if you forget you can use
‘C-x r s R’and
‘C-x r g R’(think: register-set/register-get). This works slightly different in XEmacs. From the info page (XEmacs)RegText?: “’
‘C-x r s R’stores a copy of the text of the region into the register named R.
‘C-x r i R’inserts the text from the register
‘R’in the buffer.” At least this is true for XEmacs 21.4.x.
|store region as “a”|
|insert region stored in “a”|
|store rectangle as “a”|
|store current point as “a”|
|move to point in “a”|
|store configuration of windows in frame|
|restore window configurations|
|store window configuration for all frames|
|restore all window configurations|
|store 1 in “a”|
|add 1 to number in “a”|
|insert number in “a”|
|save as NAME|
|move to default|
|move to NAME|