Home>

Emacs23.4.1 is used.
When deleting a character string, a selection range is created with ctrl + space and then cut with ctrl + w.
However, this method will overwrite what was in the previous kill-ring.
Is there a way to delete a string without putting it in a kill-ring like the delete key in windows?

  • Answer # 1

    There is a command

    delete-region, so you can map it to some key.
    Of course, you can do it directly.

  • Answer # 2

    .emacs

    (delete-selection-mode t)


    If you write, you can delete with Ctrl-d or Delete key without putting the selection in kill-ring.