|
From: | Dmitry Gutov |
Subject: | bug#19853: Acknowledgement (25.0.50; ElDoc is displayed whether eldoc-mode is enabled or not) |
Date: | Sun, 20 Mar 2016 22:24:20 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 |
On 03/20/2016 09:53 PM, Michael Heerdegen wrote:
If we want the global mode to push its stuff into the global hook bindings, and not into all the local hook bindings in every single buffer where the mode is applicable - can we achieve this with `define-globalized-minor-mode'?
You could use :after-hook argument.But it doesn't seem like what we should in do cases like this: what would (eldoc-mode -1) do if the globalized mode has modified the global hook values? We can't modify those locally.
And then, I think making `define-globalized-minor-mode' accept a BODY argument would be good - a globalized minor mode might want to do some global setup.
Again, see the mention of :after-hook in the define-minor-mode docstring. It works in the globalized definitions as well.
[Prev in Thread] | Current Thread | [Next in Thread] |