From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.help Subject: Re: Display line number on each buffer line Date: Thu, 02 Dec 2021 09:17:42 +0000 Message-ID: <875ys7z7pl.fsf@posteo.net> References: <87mtljmmqh.fsf@gnus.org-MpuGQO3----2> 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="6187"; mail-complaints-to="usenet@ciao.gmane.io" Cc: fatiparty@tutanota.com, Lars Ingebrigtsen To: fatiparty--- via Users list for the GNU Emacs text editor Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 02 10:18:43 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 1msiEk-0001PX-Jj for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 02 Dec 2021 10:18:42 +0100 Original-Received: from localhost ([::1]:38012 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1msiEj-0005pR-J5 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 02 Dec 2021 04:18:41 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43796) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1msiDq-0005pJ-Mu for help-gnu-emacs@gnu.org; Thu, 02 Dec 2021 04:17:46 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]:44993) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1msiDo-0005yv-R5 for help-gnu-emacs@gnu.org; Thu, 02 Dec 2021 04:17:46 -0500 Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 23112240104 for ; Thu, 2 Dec 2021 10:17:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1638436663; bh=Cf9Zq8XE6vrfoK8WrpodwxC37mWjOIlA7VNlR5omvZ4=; h=From:To:Cc:Subject:Date:From; b=b4Vah2eim/3iOVoEfiaz+x6zgKJIi+8m+2mB3GGIqHq39BAvhIhixrCCd4E+zkkjS 2GYf0/7ODK7+vUf/opnbfhUx4ppUqelYI9fwOWEg95HV6gOcDyIF6DuoG0ngvGvfSI K9fVHq3xtIJqCAn5XSijXLDRCt2M+O6VvrsMp6CUSe5dKOIhzdgekCZSOnuZCvaiZq Ee7yyYCEnjh5M9DdOIB1amEIOGWfhcfYnkhmwXl5a+2ArCG97CUQ0yOK15aAIBGDa1 kWRWbu1zMTH37RXOvv14zbN2zf/P38fuTVjXvj+ffwfZCylbonqIYO1Mxk6BrO6rlb U5GnKlwPh2TQw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4J4VjL4Jyfz6tmT; Thu, 2 Dec 2021 10:17:42 +0100 (CET) In-Reply-To: (fatiparty's message of "Thu, 2 Dec 2021 10:02:19 +0100 (CET)") Received-SPF: pass client-ip=185.67.36.66; envelope-from=philipk@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:134774 Archived-At: fatiparty--- via Users list for the GNU Emacs text editor writes: > Dec 2, 2021, 08:31 by larsi@gnus.org: > >> fatiparty--- via Users list for the GNU Emacs text editor >> writes: >> >>> Is there a way to display the line number on each buffer line? >>> >> >> `M-x display-line-numbers-mode' >> > That's what I was looking for.=C2=A0 Is there a technique for changing th= e foreground colour of the line number as well? You can customise the faces line-number (for all lines) and line-number-current-line (for the current line). Use `M-x customize-face [face name]' to do this interactively. --=20 Philip Kaludercic