Questions tagged [registers]
The registers tag has no usage guidance.
22
questions
1
vote
2answers
28 views
How to copy one register to another?
In vim :let @"=@* will copy the content of* register to the " register. How can it be done with evil?
4
votes
1answer
27 views
Using a number in register as prefix argument
How can I use a number in a register after C-u ?
For example my register looks like 1: 24, and I want to do C-u 24 x.
0
votes
1answer
17 views
evil-mode exec register ignores pipe
In vim, assume :r!ls | grep foo is in the register l.
You can then do: @l to exec ls | grep foo and insert the contents matching foo in to the current buffer.
In evil-mode I get:
Usage: grep [OPTION].....
0
votes
0answers
39 views
How can I remove clipboard from being the default register?
I'm using emacs with evil keybindings (specifically spacemacs).
The default behavior of the paste command p is to paste in the clipboard, and default behavior of the delete command d is to put the ...
0
votes
0answers
19 views
annotate jump-to-register location with function name
I like to use jump-to-register to jump between areas in my src code. IDK if this is built-into emacs but from a spacemacs when I am about to type the register key to jump, a helpful popup comes up ...
1
vote
0answers
55 views
How to use fringe indicators to display register positions?
I know that i can use customize register-marker-face to make position-registers location visible, - is there is a way to mark resisters position using left fringe?
Also, I am using "Mitsuharu ...
4
votes
0answers
127 views
How to restore windows registers from saved desktop
I save a few different windows registers using M-x r w and then save the entire desktop with M-x desktop-save.
I then restart Emacs and load the desktop using M-x desktop-read. If I do M-x r j do ...
1
vote
0answers
77 views
Save my Emacs registry entries without having to use desktop-save
I frequently create registry entries which I wish to keep across Sessions. Emacs does not save registry entries across sessions. This can be done by using desktop-save, but the downside is that ...
2
votes
1answer
557 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
39 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
38 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
35 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
93 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
313 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 ...
1
vote
2answers
450 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
71 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/...
3
votes
6answers
542 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
272 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
137 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
92 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 ...
6
votes
2answers
4k 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 ...
43
votes
12answers
7k 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 <...