At the end of the file, test this variable, and turn on the mode
if it is non-nil.
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)
(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