mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
(delete-selection-mode): Put back :initialize keyword.
At the end of the file, test this variable, and turn on the mode if it is non-nil.
This commit is contained in:
parent
80d1e5c9af
commit
16be0abe24
1 changed files with 7 additions and 0 deletions
|
|
@ -62,6 +62,7 @@ typed text replaces the selection if the selection is active.
|
|||
You must modify via \\[customize] for this variable to have an effect."
|
||||
:set (lambda (symbol value)
|
||||
(delete-selection-mode (or value 0)))
|
||||
:initialize 'custom-initialize-default
|
||||
:type 'boolean
|
||||
:group 'editing-basics
|
||||
:require 'delsel)
|
||||
|
|
@ -130,4 +131,10 @@ then it takes a second C-g to abort the minibuffer."
|
|||
|
||||
(provide 'delsel)
|
||||
|
||||
;; This is the standard way mechanism to put the mode into effect
|
||||
;; if delete-selection-mode has already been set to t
|
||||
;; when this file is loaded.
|
||||
(when delete-selection-mode
|
||||
(delete-selection-mode t))
|
||||
|
||||
;;; delsel.el ends here
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue