I'm trying to get the kill ring to essentially ignore only whitespace entries (tabs, newlines, just spaces, etC), I'm pretty new to elisp and I'm sure the way to do this is to do defadvice, but I have a few questions.
- Would it be better to stop recording whitespace ever falling into the killing ring, or skip them on yank? I assumed the latter.
In this case, I completely lost what function I should advise about, between the current-kill, yank and insert-for-yank - but I'm not entirely sure that I should manipulate so as not to tear out the gaps from killing the ring.
Thanks!
EDIT: I'm sure the way to do this is to manipulate the `current-kill 'to keep calling until it reaches the record without spaces? (or the end of the ring, whichever comes first)
source share