help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

minor-mode hook not run


From: Andreas Röhler
Subject: minor-mode hook not run
Date: Tue, 20 Mar 2018 19:39:37 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

Hi,

writing a minor-mode, whose hook should do some setup

(define-minor-mode foo
  "Do something" nil " FOO"}
  :keymap foo-map
  (cond
   ((eq major-mode 'abc)
    (add-hook 'foo-mode-hook 'foo-load-abc nil t)
    ;; (funcall 'foo-load-abc)
)
...

Unfortunately, while the function ‘foo-load-abc-mode’ is present in the hook, it is not called.

While uncommenting the funcall shown would set up the vars.

Any idea, while this as a hook has no effect?

Thanks,

Andreas



reply via email to

[Prev in Thread] Current Thread [Next in Thread]