diff options
author | Richard M. Stallman <rms@gnu.org> | 1997-08-23 17:04:52 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1997-08-23 17:04:52 +0000 |
commit | 16be0abe24a75e2c8fd8e2ecb9d4956146bde389 (patch) | |
tree | d1beb3280b49119b16104e5d0c5a45ea9c7fd894 /lisp/delsel.el | |
parent | 80d1e5c9af20bdf394fdec20303d2fe993336e01 (diff) |
(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.
Diffstat (limited to 'lisp/delsel.el')
-rw-r--r-- | lisp/delsel.el | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/delsel.el b/lisp/delsel.el index ffd8f990eb..2c3af32430 100644 --- a/lisp/delsel.el +++ b/lisp/delsel.el @@ -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 |