all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* minor-mode hook not run
@ 2018-03-20 18:39 Andreas Röhler
  2018-03-20 20:31 ` John Shahid
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Andreas Röhler @ 2018-03-20 18:39 UTC (permalink / raw)
  To: Help Gnu Emacs mailing list

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



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-03-23 12:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-20 18:39 minor-mode hook not run Andreas Röhler
2018-03-20 20:31 ` John Shahid
2018-03-20 20:31 ` Stefan Monnier
2018-03-21 11:57   ` Andreas Röhler
2018-03-22 13:52     ` Stefan Monnier
2018-03-23 12:46       ` Andreas Röhler
     [not found] ` <mailman.10975.1521577943.27995.help-gnu-emacs@gnu.org>
2018-03-20 21:17   ` Emanuel Berg

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.