[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
18. Registers
Emacs registers are compartments where you can save text, rectangles, positions, and other things for later use. Once you save text or a rectangle in a register, you can copy it into the buffer once, or many times; you can move point to a position saved in a register once, or many times.
Each register has a name, which consists of a single character. A register can store a number, a piece of text, a rectangle, a position, a window configuration, or a file name, but only one thing at any given time. Whatever you store in a register remains there until you store something else in that register. To see what a register r contains, use M-x view-register.
- M-x view-register <RET> r
Display a description of what register r contains.
Bookmarks record files and positions in them, so you can return to those positions when you look at the file again. Bookmarks are similar enough in spirit to registers that they seem to belong in this chapter.
18.1 Saving Positions in Registers | Saving positions in registers. | |
18.2 Saving Text in Registers | Saving text in registers. | |
18.3 Saving Rectangles in Registers | Saving rectangles in registers. | |
18.4 Saving Window Configurations in Registers | Saving window configurations in registers. | |
18.5 Keeping Numbers in Registers | Numbers in registers. | |
18.6 Keeping File Names in Registers | File names in registers. | |
18.7 Bookmarks | Bookmarks are like registers, but persistent. |