From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: fatiparty--- via Users list for the GNU Emacs text editor Newsgroups: gmane.emacs.help Subject: Display line number on each buffer line Date: Fri, 3 Dec 2021 10:36:19 +0100 (CET) Message-ID: References: <87mtljmmqh.fsf@gnus.org-MpuGQO3----2> <875ys7z7pl.fsf@posteo.net-MpuQz9y----2> <87r1avrrbs.fsf@web.de> <83h7br9h7x.fsf@gnu.org> <87h7brrpyj.fsf@web.de> Reply-To: fatiparty@tutanota.com 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="34635"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 03 10:37:02 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 1mt501-0008pM-V1 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 03 Dec 2021 10:37:01 +0100 Original-Received: from localhost ([::1]:35064 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mt500-0007mc-Oc for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 03 Dec 2021 04:37:00 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36046) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mt4zS-0007mF-N8 for help-gnu-emacs@gnu.org; Fri, 03 Dec 2021 04:36:26 -0500 Original-Received: from w1.tutanota.de ([81.3.6.162]:58864) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mt4zN-0004hP-Jt for help-gnu-emacs@gnu.org; Fri, 03 Dec 2021 04:36:26 -0500 Original-Received: from w3.tutanota.de (unknown [192.168.1.164]) by w1.tutanota.de (Postfix) with ESMTP id B142FFBF55C; Fri, 3 Dec 2021 09:36:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1638524179; s=s1; d=tutanota.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender; bh=7fM3hIl4t1rAAIhTzrFUuySP5zBrBWdnkKhvNvEfdz4=; b=nEe8try++1wMqxZg6tIojlZ3uOBcJIt/+CpoU+gkYrQW+P5o4h8gK9b/+YRe0f+a B81wdAGCpKG0wjPxag814RWvlpQaiq/lWt3r3qk30oDr/VSTzEebc16+8YiH9bPzmOs UrbMBSzIdPDg1zZ4Lout2bSKwyoaShaiAD0rFHRpp8ZMiQP4v+9+Qvrzrg86ZoNYy3B 8aRfMe+5Cz1zxtymbDXxCJfCpb6CnrK6XwWpfEbrqjhGZ/sfRDuqQRUBorlphxel5qk zgSVxxh7ondpc9Y8GorqZqVErnGBUZf/Rm6n16vnZmTT+ND1mBbSNk756uR4PKEp7jE P6X9fFH8nw== In-Reply-To: <87h7brrpyj.fsf@web.de> Received-SPF: pass client-ip=81.3.6.162; envelope-from=fatiparty@tutanota.com; helo=w1.tutanota.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, T_SPF_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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:134805 Archived-At: Dec 2, 2021, 15:23 by michael_heerdegen@web.de: > Eli Zaretskii writes: > >> > #+begin_src emacs-lisp >> > (face-spec-set 'line-number >> > '((t (:foreground "red" :height .6))) >> > 'face-defface-spec) >> > #+end_src >> >> In general, set-face-attribute is the recommended method of changing >> attributes of faces. >> > > Thanks for that clarification. > > I am using different color themes, light and dark ones, and AFAIR this > is the reason why I prefer a complete redefinition as above instead of > `set-face-attribute' calls. > > Michael. > I think emacs can distinguish between light and dark background.=C2=A0 How = does one adapt the colours so they are different on light and dark frame backgrounds, for = reasons of legibility?