mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-17 18:37:33 +00:00
Allow customizing hooks defined via define-minor-mode
* lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Allow using Customize on the hooks (bug#10773).
This commit is contained in:
parent
50b446a6b3
commit
144bbfc662
1 changed files with 3 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue