From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Filipe Silva Newsgroups: gmane.emacs.devel Subject: Re: Native line numbers, final testing Date: Mon, 10 Jul 2017 15:23:28 -0300 Message-ID: References: <83y3s9pm2a.fsf@gnu.org> <87vandz7lw.fsf@lylat> <83wp7tpcav.fsf@gnu.org> <87r2y1z45o.fsf@lylat> <83vandp7wz.fsf@gnu.org> <87mv8pyy7f.fsf@lylat> <83shigpoxq.fsf@gnu.org> <87mv8nkh31.fsf@lylat> <83bmp3pnmb.fsf@gnu.org> <87eftzju5g.fsf@lylat> <837ezqq3gd.fsf@gnu.org> <874luuyuqy.fsf@lylat> <83wp7po86m.fsf@gnu.org> <87fuecc7vg.fsf@lylat> <83y3s2n5pa.fsf@gnu.org> <878tk1rmjx.fsf@lylat> <83a84gn4z9.fsf@gnu.org> <837ezkmwfg.fsf@gnu.org> <874lumps82.fsf@lylat> <8337a5ja4p.fsf@gnu.org> <83van0i5wl.fsf@gnu.org> <83k23gi2aj.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a113d79f600d7860553faaea7" X-Trace: blaine.gmane.org 1499711117 14065 195.159.176.226 (10 Jul 2017 18:25:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 10 Jul 2017 18:25:17 +0000 (UTC) Cc: James Cloos , Emacs developers To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 10 20:25:11 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 1dUdMr-0002v9-4f for ged-emacs-devel@m.gmane.org; Mon, 10 Jul 2017 20:25:09 +0200 Original-Received: from localhost ([::1]:42424 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUdMr-000240-T9 for ged-emacs-devel@m.gmane.org; Mon, 10 Jul 2017 14:25:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56411) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUdMK-0001lX-7m for emacs-devel@gnu.org; Mon, 10 Jul 2017 14:24:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dUdMJ-0001MM-8o for emacs-devel@gnu.org; Mon, 10 Jul 2017 14:24:36 -0400 Original-Received: from mail-oi0-f50.google.com ([209.85.218.50]:33794) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dUdMF-0001Lu-Fb; Mon, 10 Jul 2017 14:24:31 -0400 Original-Received: by mail-oi0-f50.google.com with SMTP id l130so82288528oib.1; Mon, 10 Jul 2017 11:24:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Np+aGC7oru2zonS5nKULUTC/m78ThMzsGm1GNT4vdb8=; b=bqtExELI2a7O7kYgWUZKnzlHrrCHR3RyaesPr5+rKsdUZt4a5iYUx+5G+Eg+MULuYi cbTOeyGFx/0wKUAQb8b3ROlQt8zL4IXcKKDBpxXEF5e+k6+SDnj+vzBO6TVghumgORJE V7EvmiAl4qXZ4Bmq0+GBr+VvXKFx2x47BCkyHUfwsnehNIi5D6/61d8jbiomhctAhXN4 xTh5ZMX5PpLGdsCF3bbuTmYpKHTz69f/v0NFdMZuKAqH5L+PM8gVEqi85XJJYNIwnU9q vxp2FfR/ftdq5oAYq5ND1usa2AKoHzAjC+MoXeNr/cfPGK6zZ1fuwoXI1ak7RCcgDSFv JRbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Np+aGC7oru2zonS5nKULUTC/m78ThMzsGm1GNT4vdb8=; b=KO9Omdk144TExs3jSnaB/WlaepuSUqRZWL0RQyvWKLWMWY03jQ6h0w5MS80oD9yoM6 22uGULytXNbJP1QjbDK7FGmG4gikKHmgtMRBvpllW0Vicz3S80m9b8+uBRIYkrGiAaVf yQy+M+qSK6erlTTk3auFMRbK1fdSZ7yUBFbwN+E3meEe0hl64kO96UPN9tb7uAYF9vwg 4XkKlDWuSMXZNPzlyjL2tihkONuSTdmQhNyRTfVdS4AwTovZXR8z60tnQZvbWGr/UvYt e+gtEcj1xZgyoplU7x+X9k/XAhWdrEOAx+Nv6SbrHHA57DU8rGxJ7bV2yEI45hcKPEks 2sng== X-Gm-Message-State: AIVw112pYEJgH12dEY95giPU9mvvy3PKR2t8o2BPy6jc3c2ffZmB7OJb MUp++VqIy4ncHI8HGpQaAPrWnA3VYw== X-Received: by 10.202.81.146 with SMTP id f140mr10146383oib.125.1499711009771; Mon, 10 Jul 2017 11:23:29 -0700 (PDT) Original-Received: by 10.182.85.69 with HTTP; Mon, 10 Jul 2017 11:23:28 -0700 (PDT) In-Reply-To: <83k23gi2aj.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.218.50 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:216432 Archived-At: --001a113d79f600d7860553faaea7 Content-Type: text/plain; charset="UTF-8" awesome thanks. On Mon, Jul 10, 2017 at 3:18 PM, Eli Zaretskii wrote: > > From: Filipe Silva > > Date: Mon, 10 Jul 2017 15:15:02 -0300 > > Cc: James Cloos , Emacs developers < > emacs-devel@gnu.org> > > > > Eli, is there a way to disable line numbers, but just for somem modes? > > > > Or better, to enable line numbers, only for certain types of modes or > filetypes? > > The variable display-line-numbers is buffer-local, so you can set it > to a non-nil value in a mode hook. Do that for major modes which > correspond to files in which you want the line numbers, and don't turn > on the mode globally. > > --001a113d79f600d7860553faaea7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
awesome thanks.

On Mon, Jul 10, 2017 at 3:18 PM, Eli Zaretskii <eliz@g= nu.org> wrote:
> From: F= ilipe Silva <filipe.silva@gmai= l.com>
> Date: Mon, 10 Jul 2017 15:15:02 -0300
> Cc: James Cloos <cloos@jhcloos= .com>, Emacs developers <e= macs-devel@gnu.org>
>
> Eli, is there a way to disable line numbers, but just for somem modes?=
>
> Or better, to enable line numbers, only for certain types of modes or = filetypes?

The variable display-line-numbers is buffer-local, so you can set it=
to a non-nil value in a mode hook.=C2=A0 Do that for major modes which
correspond to files in which you want the line numbers, and don't turn<= br> on the mode globally.


--001a113d79f600d7860553faaea7--