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

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

Re: Operation of format-mode-line


From: Heime
Subject: Re: Operation of format-mode-line
Date: Wed, 24 Jul 2024 15:40:01 +0000





Sent with Proton Mail secure email.

On Thursday, July 25th, 2024 at 1:23 AM, Eli Zaretskii <eliz@gnu.org> wrote:

> > Date: Wed, 24 Jul 2024 13:08:15 +0000
> > From: Heime heimeborgia@protonmail.com
> > Cc: help-gnu-emacs@gnu.org
> > 
> > > I meant you don't need to do anything except change the number,
> > > i.e. replace "12" with "20" (or whatever number you want there).
> > 
> > How can I do it with elisp code ? I am constructing my own modeline.
> 
> 
> mode-line-format is a variable, so you can use setq to modify its
> value. Or you could modify just the value of
> mode-line-buffer-identification, another variable (which is used to
> construct the value of mode-line-format), which is where "%12b" comes
> from.
> 
> More generally, take a look at lisp/bindings.el, where all the parts
> of mode-line-format are defined and then used to produce the final
> value of that variable.

If I change mode-line-buffer-identification, would I not loose the text
properties and the local-map for the mouse action ?  Somehow I have to put
those back.





reply via email to

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