[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Disabling minor mode after setting imenu-generic-expression
From: |
Heime |
Subject: |
Re: Disabling minor mode after setting imenu-generic-expression |
Date: |
Thu, 29 Aug 2024 10:21:31 +0000 |
On Thursday, August 29th, 2024 at 1:21 PM, Stefan Monnier via Users
list for the GNU Emacs text editor <help-gnu-emacs@gnu.org> wrote:
> > You have been asking this question every day for the last week (I
> > might be exaggerating a bit) and got no answers. This should cue you
> > to the idea that the functionality you seek is not well suited to be a
> > minor mode.
>
>
> In my case the lack of answer is because I don't understand
> the question.
> I read it as "After changing the name on my mailbox, how do I set it
> back". Presumably if you know how to change it in the first place, you
> should know how to set it back (unless maybe you can change the name on
> the mailbox but you can't read the name on the mailbox?). - Stefan
I could save the default set by the major mode before changing it. But
will all the buffer local things, I am unsure what to use. Currently,
I set the value with
(setq imenu-generic-expression
But when disabling the mode I want to revert to the original.