From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?utf-8?Q?S=C3=A9bastien?= Le Callonnec Newsgroups: gmane.emacs.devel Subject: Re: Native display of line numbers Date: Sun, 18 Jun 2017 11:51:21 +0100 Message-ID: <87h8zdbmc6.fsf@pyjama> References: <83lgoqzm0v.fsf@gnu.org> <87o9tmmjd5.fsf@pyjama> <8360fuyq9e.fsf@gnu.org> Reply-To: sebastien@weblogism.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1497783115 1041 195.159.176.226 (18 Jun 2017 10:51:55 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 18 Jun 2017 10:51:55 +0000 (UTC) User-Agent: mu4e 0.9.19; emacs 26.0.50 Cc: Eli Zaretskii To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 18 12:51:50 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dMXo5-0008Gh-1z for ged-emacs-devel@m.gmane.org; Sun, 18 Jun 2017 12:51:49 +0200 Original-Received: from localhost ([::1]:37864 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMXo8-0005e1-Ez for ged-emacs-devel@m.gmane.org; Sun, 18 Jun 2017 06:51:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33186) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMXnt-0005cD-2O for emacs-devel@gnu.org; Sun, 18 Jun 2017 06:51:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dMXnp-0006l1-5Y for emacs-devel@gnu.org; Sun, 18 Jun 2017 06:51:37 -0400 Original-Received: from 20.mo3.mail-out.ovh.net ([178.33.47.94]:58420) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dMXno-0006ic-V4 for emacs-devel@gnu.org; Sun, 18 Jun 2017 06:51:33 -0400 Original-Received: from player693.ha.ovh.net (b9.ovh.net [213.186.33.59]) by mo3.mail-out.ovh.net (Postfix) with ESMTP id 1A4A7F0104 for ; Sun, 18 Jun 2017 12:51:30 +0200 (CEST) Original-Received: from pyjama.weblogism.com (95-44-153-143-dynamic.agg2.grs.prp-wtd.eircom.net [95.44.153.143]) (Authenticated sender: sebastien@weblogism.com) by player693.ha.ovh.net (Postfix) with ESMTPSA id 01D5F44008E; Sun, 18 Jun 2017 12:51:28 +0200 (CEST) In-reply-to: <8360fuyq9e.fsf@gnu.org> X-Organisation: Coucou Wahlou X-Ovh-Tracer-Id: 6571314808037348468 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeeljedrkeefgdefhecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 178.33.47.94 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:215736 Archived-At: Hi Eli, On 2017-06-18 03:38:05, Eli Zaretskii wrote: > Only if you use setq-default to turn on the line numbers in all > buffers, I presume? You can always turn it off explicitly in that > buffer (and any other buffer where you don't want it). I used customize-option which I presume is akin to setting `display-line-numbers' in all buffers, yes. I now use something like this, which actually sounds closer to what you had in mind: (add-hook 'prog-mode-hook (lambda () (setq-local display-line-numbers t))) > > I wasn't sure no one will want numbers in the minibuffer, so I didn't > forced them off there. I'd like to hear more opinions before deciding > on this. If not using something like ido-vertical-mode, I would find that line number confusing but also pointless in the minibuffer. But I understand you're building an =E2=80=9Copt-in=E2=80=9D feature, rather an =E2=80=9Co= pt-out=E2=80=9D one as provided by `global-linum-mode' (widely recommended as a method to turn on line numbering). > Thanks. Thank you, S=C3=A9bastien.