|
From: | Gregory Heytings |
Subject: | Re: Make <delete> save the deleted text into the killing ring |
Date: | Wed, 14 Dec 2022 20:17:45 +0000 |
<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?
(defun kill-forward-char (n) (interactive "p") (let ((delete-active-region 'kill)) (delete-forward-char n t))) (global-set-key [delete] #'kill-forward-char)
[Prev in Thread] | Current Thread | [Next in Thread] |