|
From: | Dmitry Gutov |
Subject: | Re: Allow xref to use other than current major-mode |
Date: | Wed, 26 Aug 2015 01:11:28 +0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:40.0) Gecko/20100101 Thunderbird/40.0 |
On 08/26/2015 12:13 AM, Stephen Leake wrote:
Ok. I missed that globalized minor modes are automatically run in every new buffer created, after the major mode hook. That's equivalent to putting the mode enable function on after-change-major-hook.
Pretty much.
I think it would be clearer to not have major modes set things that a minor mode will then unset, but I can live with it.
Even with the current state of affairs, there's no reason to expect that a given xref backend doesn't require setting all xref variables to its own implementations.
And in the future, a minor mode will do (add-hook 'xref-backends 'foo-xref nil maybe-locally)
[Prev in Thread] | Current Thread | [Next in Thread] |