New answers tagged

3

Taking you at your word, that you want to delete, and not kill, for the char and word cases, try this. (Killing is like "cut" - it not only deletes the text but puts it on the kill-ring, which means it's available for yanking ("pasting"). Just deleting does not make the deleted text available for yanking.) But if backward killing words is ...


2

In modern versions of Emacs, by default, delete-backward-char (DEL, i.e. BackSpace) deletes the region if it is active. So you can delete instead of killing by selecting, then pressing DEL. If you want C-d or delete (Del) to do that, bind them to delete-forward-char instead of the default delete-char. If you enable delete-selection-mode, then most commands ...


2

No. M-DEL is bound to the function backward-kill-word, which calls kill-region. Anything that calls kill-region puts the killed text into the kill-ring, and also into the system clipboard. This is what differentiates the “kill commands” from commands that merely delete text from the buffer. You could call delete-region instead, or you could paste from the ...


Top 50 recent answers are included