From: Arash Esbati <arash@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Faces of modeline and Gnus headers do not obey global setting any more
Date: Fri, 03 Dec 2021 14:39:16 +0100 [thread overview]
Message-ID: <864k7pvmd7.fsf@gnu.org> (raw)
In-Reply-To: <87v905q2df.fsf@physik.rwth-aachen.de> (Torsten Bronger's message of "Fri, 03 Dec 2021 13:50:04 +0100")
Torsten Bronger <bronger@physik.rwth-aachen.de> writes:
> 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.)
This single line worked for me:
(set-face-attribute 'mode-line nil :inherit 'default)
>> *** 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.
The face gnus-header is defined in gnus-art.el, hence I added this to my
.gnus:
(with-eval-after-load "gnus-art"
(set-face-attribute 'gnus-header nil :inherit 'unspecified))
Best, Arash
next prev parent reply other threads:[~2021-12-03 13:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-03 10:03 Faces of modeline and Gnus headers do not obey global setting any more Torsten Bronger
2021-12-03 10:42 ` Robert Pluim
2021-12-03 12:50 ` Torsten Bronger
2021-12-03 13:39 ` Arash Esbati [this message]
2021-12-03 14:34 ` Torsten Bronger
2021-12-03 18:20 ` Emanuel Berg via Users list for the GNU Emacs text editor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=864k7pvmd7.fsf@gnu.org \
--to=arash@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).