How to replace a region in emacs with yank buffer contents?

后端 未结 7 2060
一向
一向 2020-12-24 05:26

When I use VIM or most modeless editors (Eclipse, NetBeans etc.) I frequently do the following. If I have similar text blocks and I need to change them all, I will change on

7条回答
  •  不思量自难忘°
    2020-12-24 06:09

    Add this to your .emacs:

    (delete-selection-mode 1)
    

    Anything that writes to the buffer while the region is active will overwrite it, including paste, but also simply typing something or hitting backspace

提交回复
热议问题