Add registers to save positions.
How it works?
C-x r s <letter> to save point in register <letter>.
C-x r j <letter> to restore point from register <letter>.
Consider the following text:
Suppose the point is before a (beginning of buffer). Then, text inserted will push a to the end of the buffer. If we save the position before a into a register, how should it change when we insert text? There are two options: the position remains at the beginning of buffer or position remains at a. These are called gravitating towards beginning and end of buffer.
Registers A-Z should gravitate towards beginning of the buffer. These are useful when you want to occasionally prepend text to some block of text in the buffer.
Registers a-z should gravitate towards end of the buffer. These are useful when you want to occasionally append text to some block of text in the buffer.
Add registers to save positions.
How it works?
C-x r s <letter>to save point in register<letter>.C-x r j <letter>to restore point from register<letter>.Consider the following text:
Suppose the point is before
a(beginning of buffer). Then, text inserted will pushato the end of the buffer. If we save the position beforeainto a register, how should it change when we insert text? There are two options: the position remains at the beginning of buffer or position remains ata. These are called gravitating towards beginning and end of buffer.Registers
A-Zshould gravitate towards beginning of the buffer. These are useful when you want to occasionally prepend text to some block of text in the buffer.Registers
a-zshould gravitate towards end of the buffer. These are useful when you want to occasionally append text to some block of text in the buffer.