Closed Fuco1 closed 6 years ago
The macro define-derived-mode already runs the hook automatically.
define-derived-mode
See
(defun my-prodigy-init () (message "foo")) (add-hook 'prodigy-mode-hook 'my-prodigy-init)
the message is printed twice
Good catch, thanks! 👍
The macro
define-derived-mode
already runs the hook automatically.See
the message is printed twice