emacs-devel
[Top][All Lists]
Advanced

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

Re: Proportional fonts in the mode line (one month test)


From: Yuan Fu
Subject: Re: Proportional fonts in the mode line (one month test)
Date: Wed, 24 Nov 2021 09:18:37 -0800


> On Nov 24, 2021, at 9:09 AM, Óscar Fuentes <ofv@wanadoo.es> wrote:
> 
> Yuan Fu <casouri@gmail.com> writes:
> 
>>> So far I like it.
>>> 
>>> However, as soon as some theme is activated, the modeline goes back to
>>> monospace. How can I prevent that?
>>> 
>>> To reproduce:
>>> 
>>> emacs -Q
>>> M-x load-theme modus-operandi
>> 
>> I guess the theme set their own face for mode-line which inherited
>> from default which uses a fixed-width font.
> 
> If this is true it is a common practice, because all themes I tried so
> far (about 5) show this behavior.
> 
> I inspected nord-theme (1) and it contains
> 
> `(mode-line ((,class (:foreground ,nord8 :background ,nord3))))
> `(mode-line-buffer-id ((,class (:weight bold))))
> `(mode-line-highlight ((,class (:inherit highlight))))
> `(mode-line-inactive ((,class (:foreground ,nord4 :background 
> ,nord-uniform-mode-lines-background))))
> 
> 1: https://github.com/arcticicestudio/nord-emacs
> 
> 

I don’t think that should be a problem, if a theme wants to use proportional 
font for mode-line, they can change their definition of mode-line face. And if 
some one uses a theme with fixed-width mode-line but wants proportional-width 
mode-line, they can redefine mode-line face.

Yuan




reply via email to

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