Questions tagged [registers]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
33 views

Is there a way to delete or clear a register?

For example, if I have too many registers and would like to get rid of some of them, is there a way to do that? I realize that quitting the emacs session will clear all registers, but is there a way ...
2
votes
1answer
28 views

Save the records in text register persistently

I utilize the text register to collect new words I encountered C-x r s w (w for word) append others to it with M-x append-to-register Record all the word collected to a works.org file at the end ...
1
vote
1answer
14 views

set-register register-separator “\n\n”)

Upon reading GNU Emacs Manual #rectangle register When you are collecting text using append-to-register and prepend-to-register, you may want to separate individual collected pieces using a ...
1
vote
1answer
12 views

user-error: That register’s buffer no longer exists

I saved point to register, closed buffer / restarted Emacs and got: user-error: That register’s buffer no longer exists I want Emacs to open file if necessary and go to point.
0
votes
2answers
52 views

How can I search through registers via counsel?

I need something like helm-register which lists all the registers and it can be searched through.
0
votes
2answers
141 views

Preserving Layout Using emacsclient

If I spawn Emacs in --daemon mode, I can then use emacsclient to connect to the daemon from within a terminal window. If this then dies, I can reconnect my terminal and my Emacs session is still ...
0
votes
1answer
246 views

What's the most efficient, idiomatic way to paste-and-replace in Emacs?

I often do something like this: Copy some stuff Go to where I need to paste it Paste it (C-y) Kill the rest of the line (C-k) Select what I just pasted, and copy it again Repeat steps 2-5 The whole "...
1
vote
1answer
56 views

How to prompt user for register name?

I'd like to prompt the user for a register name. Is there an easy way to do this? Apparently, this functionality isn't built into interactive (https://www.gnu.org/software/emacs/manual/html_node/elisp/...
2
votes
3answers
176 views

Storing previous cursor positions

I would like the ability to go back and forth through a series of stored recent cursor positions, say up to 100 of them. Specifically, a position should be recorded when I click somewhere, or when I ...
1
vote
1answer
199 views

How to refer to Emacs registers by name?

Emacs registers are useful but I find remembering the contents of them difficult. Figuring out which register I stored that particular macro in is a pain. Is there a package that allows registers to ...
2
votes
2answers
80 views

function to put current buffer in temporary register

I want to access any current file quickly. Therefore I want to build a function that put a file the register. I've started with this function: (defun tmp-register () """ put the current buffer in ...
0
votes
0answers
61 views

How can I apply a frame register (saved via desktop.el) to the current frame instead of opening a new frame?

I am using desktop.el and I saved a few frame configurations in my registers. But when I jump to a saved register (C-x r j), Emacs opens a new frame instead of applying that setting to the current ...
4
votes
2answers
3k views

Evil: Is there a default register that does not get overwritten by later yanks to explicit registers?

I often use registers in evil, but I have a common use case that I cannot seem to resolve. I would like to have all copied text stored somewhere that does not get overwritten when I explicitly make ...
38
votes
12answers
6k views

How to switch back and forth between two locations in a buffer

Sometimes I find myself frequently alternating between two functions that I am editing in conjunction with each other. In these situations, it is tedious and painful to keep on doing a C-s <...