help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Indicator in mode-line


From: Heime
Subject: Re: Indicator in mode-line
Date: Sun, 27 Nov 2022 02:34:52 +0000

------- Original Message -------
On Thursday, November 24th, 2022 at 2:21 PM, Heime <heimeborgia@protonmail.com> 
wrote:


> To update the mode-line I have been setting up global-mode-string
> 
> (setq act "Test")
> (push '("" act) global-mode-string)
> (force-mode-line-update)
> 
> But executing the above has not changed the mode-line.
 
Have figured out that "Test" did actually print in the mode-line,
but because I have a small screen, it was getting printed too far
to the right side (after the mode-lighters).

 
> ------- Original Message -------
> On Thursday, November 24th, 2022 at 12:52 AM, Heime 
> heimeborgia@protonmail.com wrote:
> 
> 
> 
> > I want to issue some indicator to the mode-line when some condition happens 
> > (error,
> > warning, notification).
> > 
> > I can add things to the mode-line is the following way.
> > 
> > (setq mode-line-format (list "Indc " mode-line-format))
> > (force-mode-line-update)
> > 
> > But also require a way for the user to acknowledge the indicator
> > and be able to switch the indicator off - returning the mode-line
> > as original.
> > 
> > What kind of indications would work well in getting user attention?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]