rejeep / prodigy.el

Manage external services from within Emacs
GNU General Public License v3.0
550 stars 39 forks source link

Do not run the mode hooks manually #105

Closed Fuco1 closed 6 years ago

Fuco1 commented 6 years ago

The macro define-derived-mode already runs the hook automatically.

See

(defun my-prodigy-init ()
  (message "foo"))

(add-hook 'prodigy-mode-hook 'my-prodigy-init)

the message is printed twice

rejeep commented 6 years ago

Good catch, thanks! 👍