Questions tagged [kill-ring]
The kill ring is a global list of blocks of text that were previously copied or moved from buffers.
75 questions
2 votes
1 answer
40 views
How to configure org-capture to not add canceled capture text to kill-ring?
I'd like my kill ring to remain unaffected when I kill an org-capture invocation. put a URL in my OS clipboard (and thus kill ring) org-capture and start to create a bookmarks entry cancel org-...
1 vote
1 answer
171 views
Using only the mouse, can I copy some text and paste it over some other text?
Under emacs -Q, Emacs opens to *scratch*. This already has a handy block of text. At the bottom of the screen, I use M-x spook to generate some more. As documented, just left-clicking and dragging ...
0 votes
1 answer
80 views
Copy-visible for hideshow mode?
Is there an analog of org-copy-visible for hideshow minor mode? An example use case is: enter Python file -> hide all top-level -> copy visible and now I have a list of top-level defs in the ...
3 votes
1 answer
444 views
Is there any way to edit the kill-ring?
Are there any tools to directly edit the kill-ring? If I open xah-show-kill-ring, I'm tempted to edit the contents directly.
0 votes
1 answer
54 views
How can I prevent kill-visual-line from appending kills to the kill-ring?
As described in the manual, each kill command pushes a new entry onto the kill ring. However, two or more kill commands in a row combine their text into a single entry, so that a single C-y yanks all ...
0 votes
1 answer
82 views
Define command that executes several functions
I apologize for this question, for which I know an elementary answer exists that I can't find for the life of me. I would simply like to define a command that executes several functions sequentially. ...
0 votes
1 answer
83 views
Copy the value of a property in the properties drawer
I want to copy the value of a property in the properties drawer to the kill ring, so I can paste (yank) it with org-yank (for example). Something similar to what kill-ring-save does. Currently, I have ...
2 votes
1 answer
154 views
Swap two pieces of text
I often find myself swapping pieces of text. How can I make a command to replace the current text with the latest kill, then put the text I just replaced at the position of the previous kill? Or is ...
0 votes
1 answer
57 views
Does kill-new take some time to put a string on the system clipboard?
I have an emacs function which calls kill-new to put a string onto the Windows system clipboard and then immediately invokes an external script to paste that string from the clipboard to an other ...
0 votes
1 answer
151 views
Is it possible to use counsel-yank-pop (or something similar) to get the job done of pasting from the clipboard-ring in the mini-buffer?
This is my emacs init file. As you see, I use command counsel-yank-pop. And I even did a keybinding for it with: ;; =counsel-yank-pop= enhances built-in =yank-pop=. (global-set-key (kbd "M-y"...
3 votes
1 answer
37 views
save symbol under point to kill ring upon pressing isearch-forward-symbol-at-point
I want isearch-forward-symbol-at-point to also save to the kill-ring. How can I accomplish that please?
0 votes
2 answers
176 views
How to add a hook to save things on kill-ring (or clipboard ring) before a frame is deleted?
Context: I have been using an interesting software called Emacs Anywhere. It helps me bring emacs keybindings for stuff like this (editing text for a question on Stack Exchange). Overall, the software ...
0 votes
1 answer
103 views
How to access the last-yanked text programmatically?
How can I use the last thing yanked in a command I'm writing? For example, if the last text I yanked was "test" I want to use this string somehow in my command. (I use avy and evil.)
1 vote
1 answer
921 views
How to clear the `kill-ring`?
I really like counsel-yank-pop. I like it so much that I have changed my keybindings so that C-y is bounded to counsel-yank-pop. However, after a while the kill-ring tends to become a big mess. I ...
0 votes
1 answer
405 views
How to copy the output of command `pwd`, which is echoed in the echo area?
After executing the command pwd, Emacs minibuffer successfully returns the file location, for instance: Directory /home/pedro/projects/. I can see that information. But I would also like to copy it. ...