Commit d99d3266 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

(define-minor-mode): Use customize-mark-as-set for global minor modes.

parent 098ba983
......@@ -190,11 +190,13 @@ With zero or negative ARG turn mode off.
;; The on/off hooks are here for backward compatibility only.
(run-hooks ',hook (if ,mode ',hook-on ',hook-off))
;; Return the new setting.
(if (interactive-p)
(message ,(format "%s %%sabled" pretty-name)
(if ,mode "en" "dis")))
,(if globalp `(customize-mark-as-set ',mode))
(message ,(format "%s %%sabled" pretty-name)
(if ,mode "en" "dis"))))
;; Return the new setting.
;; Autoloading an easy-mmode-define-minor-mode autoloads
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment