[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Faces of modeline and Gnus headers do not obey global setting any mo
From: |
Torsten Bronger |
Subject: |
Re: Faces of modeline and Gnus headers do not obey global setting any more |
Date: |
Fri, 03 Dec 2021 13:50:04 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Hallöchen!
Robert Pluim writes:
> [...]
>
> From etc/NEWS
>
> +++
> ** New face 'mode-line-active'.
> This inherits from the 'mode-line' face, but is the face actually used
> on the mode lines (along with 'mode-line-inactive').
>
> ---
> ** The mode line now uses a proportional font by default.
> To get the old monospaced mode line back, customize the
> 'mode-line-active' and 'mode-line-inactive' faces not to inherit from
> the 'variable-pitch' face, or add this to your "~/.emacs":
>
> (set-face-attribute 'mode-line-active nil :inherit 'mode-line)
> (set-face-attribute 'mode-line-inactive nil :inherit 'mode-line)
Thank you, this worked! (Additionally, I had to revert the default
colour for the inactive mode line.)
> ---
> *** Gnus now uses a variable-pitch font in the headers by default.
> To get the monospace font back, you can put something like the
> following in your .gnus file:
>
> (set-face-attribute 'gnus-header nil :inherit 'unspecified)
For me, this didn’t work out-of-the-box. Apparently, the colour
“gnus-header” is defined rather late in the Gnus startup. I had to
write:
(add-hook 'gnus-setup-news-hook (lambda () (set-face-attribute 'gnus-header nil
:inherit 'unspecified)))
Even the gnus-started-hook was not “late” enough.
Tschö,
Torsten.
--
Torsten Bronger
smime.p7s
Description: S/MIME cryptographic signature