help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Make <delete> save the deleted text into the killing ring


From: aitor
Subject: Re: Make <delete> save the deleted text into the killing ring
Date: Wed, 14 Dec 2022 12:23:46 +0100

> <delete> char is bound to `delete-forward-char` which does not save the
> deleted text into the kill ring by default. How can I change this
> behavior and make <delete> actually save the killed text into the ring?

So I've tried stuff like:

(global-set-key [delete]
                (lambda (n)
                  (interactive "p")
                  (delete-forward-char n t)))

but no luck, the deleted does not appear in the kill ring.

best,
                                aitor



reply via email to

[Prev in Thread] Current Thread [Next in Thread]