[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Allow xref to use other than current major-mode
From: |
Stephen Leake |
Subject: |
Re: Allow xref to use other than current major-mode |
Date: |
Tue, 25 Aug 2015 16:13:52 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (windows-nt) |
Dmitry Gutov <address@hidden> writes:
>> We could require the user to manually enable an xref minor mode in each
>> buffer, but that's not friendly.
>
> We have "globalized" minor modes, to be used in similar situations.
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.
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.
--
-- Stephe
Re: Allow xref to use other than current major-mode, Stephen Leake, 2015/08/25
Re: Allow xref to use other than current major-mode, Stefan Monnier, 2015/08/25
Re: Allow xref to use other than current major-mode, Dmitry Gutov, 2015/08/25