Possible Duplicate:
Emacs: how to delete text without kill ring?
I am sick of everything i 'delete' in emacs being added to the kill-ring; it always means i must M-y twice to move past what i just deleted to get what i was going to paste!
is there an easy way to actually 'delete' what i select rather than add it to the kill-ring? How do other people deal with this problem? doesn't it annoy you too that what you 'delete' is added to the kill-ring?
Delete Selection mode lets you treat an Emacs region much like a typical text selection outside of Emacs: You can replace the active region just by typing text, and you can delete the selected text just by hitting the Backspace key ( 'DEL' ).
Click the mouse's left button at the start of the area to be selected, and drag the mouse to the end of the area. The region you selected should be highlighted.
# Press z as many times as you wish.
The Emacs way to remove the word one is inside of to press M-backspace followed by M-d . That will kill the word at point and save it to kill ring (as one unit). If the cursor is at the beginning or after the end of the word, only one of the two is sufficient.
Sure. Whereas C-w by default performs a (kill-region) you could instead perform a (delete-region) — and likewise for kill-whole-line, kill-word, and any other sort of killing you might otherwise have planned.
You could do a delete-region by hitting M-x and then typing it out, though that seems to undo the savings of the extra M-y you have to perform now, so binding the delete- functions to... some keys... of some kind... would probably be preferable.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With