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 the text as a unit, just as it was before it was killed.

I don't want that;)

How can I prevent appending kills to the kill-ring?

1 Answer 1


I couldn't find a relevant user option, but you can implement it by executing the following code:

(advice-add 'kill-visual-line :around
            (lambda (fn &rest args)
              (let (last-command)
                (apply fn args))))

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.