[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Make <delete> save the deleted text into the killing ring
From: |
Emanuel Berg |
Subject: |
Re: Make <delete> save the deleted text into the killing ring |
Date: |
Wed, 14 Dec 2022 18:44:20 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
aitor wrote:
>> <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.
Is this a good idea? Why?
But if you want it, make a command, i.e. an interactive defun
that does it, when it works, bind it to a key ...
--
underground experts united
https://dataswamp.org/~incal