Wednesday, 15 April 2015

overwrite - How can I disable emacs delete-selection-mode -



overwrite - How can I disable emacs delete-selection-mode -

emacs's delete-selection-mode, modern feels, makes easy inadvertently delete code. thus, disabled default. therefore, added

(delete-selection-mode f)

to init.el file had no effect. mean, if highlight part , type something, contents of selection replaced new typing. tried toggling mode m-x delete-selection-mode command, had no effect. utilize emacs 24.1.1 on windows7, mac , linux. missing, there other mode or variable should enabling instead?

delete-selection-mode set default when cua mode enabled, can disabled via m-x customize. cua settings subgroup of "editing basics" subgroup of top-level "editing" group. disable delete-selection mode, utilize value menu of "cua delete selection" item , alter setting disabled. place next line among custom-set-variables defined in .emacs or init.el file: (cua-delete-selection nil). after has been set, actions such cutting c-w or pressing delete key go on operate on regions.

emacs overwrite

No comments:

Post a Comment