Closed danielsz closed 7 years ago
Will monroe-mode-hook
and monroe-interaction-mode-hook
be suitable for you?
monroe-mode-hook
is called when new connection is made in REPL buffer and monroe-interaction-mode-hook
is called when you open anything that invokes "Monroe" mode (like .clj/.cljs files and so on).
These aren't documented in README, which should be changed...
Yes, it's perfect, actually. Thank you so much! (I should have looked more closely at the source code)
(add-hook 'monroe-mode-hook (lambda () (abbrev-mode 1)))
Glad this solved your problem.
The thing is that you won't find it in source code directly: elisp's define-minor-mode
and define-derived-mode
macros (used to define monroe modes) will implicitly create these hooks and call them when mode is enabled.
Oh, right!
I actually looked at the code a while back and indeed couldn't find it. Thank you for explaining! :+1:
I'd love to be able to add custom elisp via the standard Emacs mode hook facility.
With Cider, for example, I have the following:
Thanks for listening!