From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arash Esbati Newsgroups: gmane.emacs.help Subject: Re: Faces of modeline and Gnus headers do not obey global setting any more Date: Fri, 03 Dec 2021 14:39:16 +0100 Message-ID: <864k7pvmd7.fsf@gnu.org> References: <87fsrauhrk.fsf@physik.rwth-aachen.de> <87mtlic6li.fsf@gmail.com> <87v905q2df.fsf@physik.rwth-aachen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21140"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 03 14:50:40 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mt8xS-0005Hw-Sj for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 03 Dec 2021 14:50:39 +0100 Original-Received: from localhost ([::1]:57752 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mt8xR-0002OU-A4 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 03 Dec 2021 08:50:37 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37072) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mt8mh-0005TN-91 for help-gnu-emacs@gnu.org; Fri, 03 Dec 2021 08:39:32 -0500 Original-Received: from [2001:470:142:3::e] (port=56920 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mt8mh-0004WU-0r for help-gnu-emacs@gnu.org; Fri, 03 Dec 2021 08:39:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=dSnVUGA+x6wrJNZARkAdmKRonjKjzYq2xfckYWZgrnQ=; b=okwYYnkYEIeOtZJUa690 Ch51QdXFL1GgkzD0rQHFFwNUekTtU/4J3oq/ALeIb9NbpbNYEqfxh+u9PlVs7ah2TRIv0fqEN57LS TVPgyhzYBGgO8ugYPzs5eNulkrrCPcKviVu06aZAB2EFmZx7DnGz/vC4hlOp2ylDjBZdamehsYl1/ DBUyPA+FE9v96tWD1+H6drvFWharF1p+1LEDLzTvGPJd2zdRpRLp42nhWW3NF3CO5bWaJrC818oFw EUQakxDjn5h2bXXW4EkV260++I/ISlT73JYfA5cNYbpFBPLn4M2DXnOYWc8cj6l0hlbfUveQI9yQh H2hsEBjr3EQsyg==; Original-Received: from p5b326e61.dip0.t-ipconnect.de ([91.50.110.97]:59087 helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mt8me-0003Qw-Om for help-gnu-emacs@gnu.org; Fri, 03 Dec 2021 08:39:30 -0500 In-Reply-To: <87v905q2df.fsf@physik.rwth-aachen.de> (Torsten Bronger's message of "Fri, 03 Dec 2021 13:50:04 +0100") X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:134811 Archived-At: Torsten Bronger 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=E2=80=99t work out-of-the-box. Apparently, the colour > =E2=80=9Cgnus-header=E2=80=9D is defined rather late in the Gnus startup.= I had to > write: > > (add-hook 'gnus-setup-news-hook (lambda () (set-face-attribute 'gnus-head= er nil :inherit 'unspecified))) > > Even the gnus-started-hook was not =E2=80=9Clate=E2=80=9D 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