Fork me on GitHub
#emacs
<
2019-01-30
>
practicalli-johnny10:01:00

@ciacci1234 you could set up the backspace to delete a character (or region) without adding the deleted text to the kill ring. That is the only thing I can think of.

(global-set-key (kbd "<backspace>")
          '(lambda () (interactive) (backward-delete-char-untabify 1 nil)))

Anthony Ciacci20:01:18

thanks for the suggestion!

practicalli-johnny21:01:47

If you are using the latest Spacemacs, the paste function (`p` in Evil normal mode) provides a transient state menu to cycle through the kill ring really easily. I use this to avoid needing a delete that doent add to the kill ring. It seems that the M-y, the yank-pop command does the same thing in normal Emacs (although I havent had chance to test it) https://www.gnu.org/software/emacs/manual/html_node/emacs/Earlier-Kills.html