summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/easy-mmode.el
diff options
context:
space:
mode:
authorAndrea Corallo <akrl@sdf.org>2020-09-21 21:45:02 +0200
committerAndrea Corallo <akrl@sdf.org>2020-09-21 21:45:02 +0200
commit5a8be1719a80031ea3833749b1e82de8d5a39787 (patch)
tree1f3cb774fd9e222b7d4f2f426695e7894ee7b297 /lisp/emacs-lisp/easy-mmode.el
parent5b41545f1be367837d9ac717ea67fba19a4c24d4 (diff)
parentfb68645b5a258c98acc11efdc3caae80683cc6b0 (diff)
downloademacs-5a8be1719a80031ea3833749b1e82de8d5a39787.tar.gz
emacs-5a8be1719a80031ea3833749b1e82de8d5a39787.tar.bz2
emacs-5a8be1719a80031ea3833749b1e82de8d5a39787.zip
Merge remote-tracking branch 'savannah/master' into HEAD
Diffstat (limited to 'lisp/emacs-lisp/easy-mmode.el')
-rw-r--r--lisp/emacs-lisp/easy-mmode.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/easy-mmode.el b/lisp/emacs-lisp/easy-mmode.el
index e3eb9294ed6..fdc1233540e 100644
--- a/lisp/emacs-lisp/easy-mmode.el
+++ b/lisp/emacs-lisp/easy-mmode.el
@@ -335,6 +335,9 @@ or call the function `%s'."))))
No problems result if this variable is not bound.
`add-hook' automatically binds it. (This is true for all hook variables.)"
modefun)))
+ ;; Allow using using `M-x customize-variable' on the hook.
+ (put ',hook 'custom-type 'hook)
+ (put ',hook 'standard-value (list nil))
;; Define the minor-mode keymap.
,(unless (symbolp keymap) ;nil is also a symbol.