I learned something new in Emacs (my favourite text editor) today. Normally in Emacs, if you start typing while having some text selected will not overwrite this text. This is contrary to what most people are used to in other editors. It turns out that Emacs has a minor mode that fixes this: delete-selection-mode
. Add the following to your .emacs
file to have it loaded by default:
(delete-selection-mode t) |
Since delete-selection-mode
enables transient-mark-mode
I commented the line
(setq transient-mark-mode t) |
in my .emacs
References:
Thanks! I’ve been looking for it!