[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#30978: 25.3; Suggestion: define-minor-mode should define mode-lighte
From: |
Lars Ingebrigtsen |
Subject: |
bug#30978: 25.3; Suggestion: define-minor-mode should define mode-lighter variable |
Date: |
Fri, 25 Jun 2021 16:27:51 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Lars Ingebrigtsen <larsi@gnus.org> writes:
>>> I think this makes sense -- define-minor-mode would define a
>>> buffer-local variable, I guess, that the users could set to change the
>>> lighter?
>>>
>>> Like... `FOO-mode-lighter' or something? Any opinions?
>>
>> Yes, it sounds like a good idea.
>>
>> I'm not sure why you propose that it should be buffer-local though.
>> Wouldn't one want to configure this globally by default?
>
> Hm... yes, a global variable makes more sense. I was thinking that
> somebody would want a different lighter in different buffers, but that
> does sound rather unlikely.
Does anybody else have an opinion here? The suggestion is to make
define-minor-mode define a `foo-mode-lighter' variable that users can
then change to easily change the lighters.
Or do we have a separate mechanism for this somewhere?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- bug#30978: 25.3; Suggestion: define-minor-mode should define mode-lighter variable,
Lars Ingebrigtsen <=