* Thought: Group Minor Modes Into Logical "Bundles"?
@ 2022-11-24 3:15 T.V Raman
2022-11-24 3:21 ` Stefan Monnier
2022-11-24 9:42 ` Daniel Martín
0 siblings, 2 replies; 6+ messages in thread
From: T.V Raman @ 2022-11-24 3:15 UTC (permalink / raw)
To: emacs-devel
The minor mode indicators in the modeline are getting to be too many
-- and though :lighter for shorter indicators help, I'm still finding
them overly heavy to consume --- it's painful to listen to :-) though
I suspect they also place a level of cognitive load on users who can
that we might be able to reduce.
For instance, in programming language modes, I suspect it's
increasingly common to have autofill, abbrev, -- perhaps company etc
turned on; would be nice if a user could:
1. Define a "logical bundle of minor modes " that are specific to
various tasks, and then have a modeline indicater for that "bundle"
defined -- so the Modeline would indicate "prog" for the user to
know and remember that a preferred set of programming affordances
are turned on. Thoghts?
--
Thanks,
--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1 🦮
--
Thanks,
--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1 🦮
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Thought: Group Minor Modes Into Logical "Bundles"?
2022-11-24 3:15 Thought: Group Minor Modes Into Logical "Bundles"? T.V Raman
@ 2022-11-24 3:21 ` Stefan Monnier
2022-11-24 4:54 ` T.V Raman
2022-11-24 9:42 ` Daniel Martín
1 sibling, 1 reply; 6+ messages in thread
From: Stefan Monnier @ 2022-11-24 3:21 UTC (permalink / raw)
To: T.V Raman; +Cc: emacs-devel
Hi,
> 1. Define a "logical bundle of minor modes " that are specific to
> various tasks, and then have a modeline indicater for that "bundle"
> defined
You forgot to include the link to that package of yours,
Stefan :-)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Thought: Group Minor Modes Into Logical "Bundles"?
2022-11-24 3:21 ` Stefan Monnier
@ 2022-11-24 4:54 ` T.V Raman
0 siblings, 0 replies; 6+ messages in thread
From: T.V Raman @ 2022-11-24 4:54 UTC (permalink / raw)
To: Stefan Monnier; +Cc: emacs-devel
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb18030, Size: 493 bytes --]
Stefan Monnier <monnier@iro.umontreal.ca> writes:
:-) if you mean emacspeak :-)
https://github.com/tvraman/emacspeak
> Hi,
>
>> 1. Define a "logical bundle of minor modes " that are specific to
>> various tasks, and then have a modeline indicater for that "bundle"
>> defined
>
> You forgot to include the link to that package of yours,
>
>
> Stefan :-)
>
--
Thanks,
--Raman(I Search, I Find, I Misplace, I Research)
7©4 Id: kg:/m/0285kf1 0Ü8
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Thought: Group Minor Modes Into Logical "Bundles"?
2022-11-24 3:15 Thought: Group Minor Modes Into Logical "Bundles"? T.V Raman
2022-11-24 3:21 ` Stefan Monnier
@ 2022-11-24 9:42 ` Daniel Martín
2022-11-25 8:51 ` Kévin Le Gouguec
2022-11-25 15:09 ` T.V Raman
1 sibling, 2 replies; 6+ messages in thread
From: Daniel Martín @ 2022-11-24 9:42 UTC (permalink / raw)
To: T.V Raman; +Cc: emacs-devel
"T.V Raman" <raman@google.com> writes:
> The minor mode indicators in the modeline are getting to be too many
> -- and though :lighter for shorter indicators help, I'm still finding
> them overly heavy to consume --- it's painful to listen to :-) though
> I suspect they also place a level of cognitive load on users who can
> that we might be able to reduce.
>
> For instance, in programming language modes, I suspect it's
> increasingly common to have autofill, abbrev, -- perhaps company etc
> turned on; would be nice if a user could:
>
> 1. Define a "logical bundle of minor modes " that are specific to
> various tasks, and then have a modeline indicater for that "bundle"
> defined -- so the Modeline would indicate "prog" for the user to
> know and remember that a preferred set of programming affordances
> are turned on. Thoghts?
There is the Diminish package in GNU ELPA:
https://elpa.gnu.org/packages/diminish.html I don't know if it already
supports the "bundling" feature that you propose, or something
equivalent.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Thought: Group Minor Modes Into Logical "Bundles"?
2022-11-24 9:42 ` Daniel Martín
@ 2022-11-25 8:51 ` Kévin Le Gouguec
2022-11-25 15:09 ` T.V Raman
1 sibling, 0 replies; 6+ messages in thread
From: Kévin Le Gouguec @ 2022-11-25 8:51 UTC (permalink / raw)
To: Daniel Martín; +Cc: T.V Raman, emacs-devel
Daniel Martín <mardani29@yahoo.es> writes:
> "T.V Raman" <raman@google.com> writes:
>
>> The minor mode indicators in the modeline are getting to be too many
>> -- and though :lighter for shorter indicators help, I'm still finding
>> them overly heavy to consume --- it's painful to listen to :-) though
>> I suspect they also place a level of cognitive load on users who can
>> that we might be able to reduce.
>>
>> For instance, in programming language modes, I suspect it's
>> increasingly common to have autofill, abbrev, -- perhaps company etc
>> turned on; would be nice if a user could:
>>
>> 1. Define a "logical bundle of minor modes " that are specific to
>> various tasks, and then have a modeline indicater for that "bundle"
>> defined -- so the Modeline would indicate "prog" for the user to
>> know and remember that a preferred set of programming affordances
>> are turned on. Thoghts?
>
> There is the Diminish package in GNU ELPA:
> https://elpa.gnu.org/packages/diminish.html I don't know if it already
> supports the "bundling" feature that you propose, or something
> equivalent.
AFAIK Diminish (and delight, and rich-minority, and maybe others) simply
let the user redefine (or disable) the lighter for individual minor
modes.
Off the top of my head, if I wanted to implement Raman's proposal today
(as I undertand it) through user code, I guess I'd replace
mode-line-modes in mode-line-format with an :eval form that hrm… runs
through a list of {PRED ↦ LIGHTER} functions, where each PRED is fed (or
looks up) the list of enabled minor modes, and outputs a short LIGHTER
for a logical bundle? E.g.
(defvar my/prog-minor-modes
'(auto-fill-function
abbrev-mode))
(defun my/prog-lighters ()
(and (derived-mode-p 'prog-mode)
(seq-every-p 'identity my/prog-minor-modes)
" prog"))
… and then append my/prog-lighters to another list variable that the
:eval form will go through… hm, it's clearly half-baked (e.g. if any of
the modes are disabled, then the lighter won't be shown, so should
my/prog-lighters fall back to listing all enabled modes? 🤷), and/or
over-engineered.
I'm mostly posting this to see if my understanding of Raman's proposal
is correct.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Thought: Group Minor Modes Into Logical "Bundles"?
2022-11-24 9:42 ` Daniel Martín
2022-11-25 8:51 ` Kévin Le Gouguec
@ 2022-11-25 15:09 ` T.V Raman
1 sibling, 0 replies; 6+ messages in thread
From: T.V Raman @ 2022-11-25 15:09 UTC (permalink / raw)
To: mardani29; +Cc: raman, emacs-devel
diminish does do some of what I want, thanks for that pointer.
--
Thanks,
--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1 🦮
--
Thanks,
--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1 🦮
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-11-25 15:09 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-24 3:15 Thought: Group Minor Modes Into Logical "Bundles"? T.V Raman
2022-11-24 3:21 ` Stefan Monnier
2022-11-24 4:54 ` T.V Raman
2022-11-24 9:42 ` Daniel Martín
2022-11-25 8:51 ` Kévin Le Gouguec
2022-11-25 15:09 ` T.V Raman
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).