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.
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.
The contents of the kill ring is, by definition, the value of the variable kill-ring
, which is a list of strings. You can change the contents of the kill ring by modifying this variable and (depending on what you're doing) updating kill-ring-yank-pointer
accordingly.
I don't think Emacs comes with any convenient interface to edit the kill ring. You have to write Lisp code or use a third-party package.
At least browse-kill-ring
(available from MELPA) and browse-kill-ring+
have an interface to edit and remove kill ring entries. (But not to add: just copy something. And not to reorder.)
There are many other kill ring browsing interfaces, but I don't know if they have editing capabilities.
browse-kill-ring+
is neither unmaintained nor a fork of anything. It enhances what browse-kill-ring.el
offers. I've edited the answer to remove that characterization.
– Drew
Dec 13 '23 at 20:57
C-h v kill-ring
? – NickD Dec 13 '23 at 12:39