Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [registers]

The tag has no usage guidance.

0
votes
1answer
29 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
1answer
91 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
0answers
25 views

Is there any way to reliably tell when a keyboard macro definition fails than `defining-keyboard-macro`?

I coded up a function designed to manage my keyboard macros with one hotkey; it takes a numeric prefix argument and defines a macro if the argument is non-nil. It stops defining the macro and saves it ...
0
votes
1answer
206 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 "...
0
votes
1answer
50 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
150 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
177 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
74 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
54 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
5k 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 <...