Skip to content

Registers #10

@balu

Description

@balu

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:

abcdefg

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions