From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Display line number on each buffer line Date: Thu, 02 Dec 2021 17:09:06 +0200 Message-ID: <83h7br9h7x.fsf@gnu.org> References: <87mtljmmqh.fsf@gnus.org-MpuGQO3----2> <875ys7z7pl.fsf@posteo.net-MpuQz9y----2> <87r1avrrbs.fsf@web.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6954"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 02 16:10: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 1msnik-0001ZQ-0A for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 02 Dec 2021 16:10:02 +0100 Original-Received: from localhost ([::1]:40970 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1msnih-0006El-VT for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 02 Dec 2021 10:09:59 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55676) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1msni8-0006EP-IC for help-gnu-emacs@gnu.org; Thu, 02 Dec 2021 10:09:24 -0500 Original-Received: from [2001:470:142:3::e] (port=47586 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 1msni3-0003N0-Jp for help-gnu-emacs@gnu.org; Thu, 02 Dec 2021 10:09:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=HklzfTWZX1izx4gYnK2KmLwpv9VjM4dVis+M8cZnzp4=; b=SLdzVMtwGyCs dfwP7fEk1gH4lpNtKKSJJo0wHpjLnqqiwykNId4QiLrQNF/hyv4lbEpaeXWElguATpodJJReMJwNk fQQ9jKgkzzGpwf0415SiosKAh23UsXpjSpL5OjLRxQ9VMdgpz5E19+wfk0DWBygMzey/UUAfz0d8A 109QGk3HLAnwuuMmKBVd9OUCxMGWgPImaVHgBvlLJYJW4Y23vXmcpA2irYkpZbv75H1pdOTtqA3uQ AAC5YzghXBlKER3cngUaf/DntAnaryxDVxzr/W4DxD2/3E3TIr0UqsppjyJ6wHyQAZoPepH3fFqYh 9grmHvr4rtT9zxBJ3MhJ8Q==; Original-Received: from [87.69.77.57] (port=3464 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1msni3-0001NK-7j for help-gnu-emacs@gnu.org; Thu, 02 Dec 2021 10:09:19 -0500 In-Reply-To: <87r1avrrbs.fsf@web.de> (message from Michael Heerdegen on Thu, 02 Dec 2021 15:53:27 +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:134783 Archived-At: > From: Michael Heerdegen > Date: Thu, 02 Dec 2021 15:53:27 +0100 > > You can call `face-spec-set' to change the default appearance of a face, > e.g. > > #+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.