|
From: | Filipe Silva |
Subject: | Re: Native line numbers, final testing |
Date: | Mon, 10 Jul 2017 15:23:28 -0300 |
> From: Filipe Silva <address@hidden>
> Date: Mon, 10 Jul 2017 15:15:02 -0300
> Cc: James Cloos <address@hidden>, Emacs developers <address@hidden>
>
> 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.
[Prev in Thread] | Current Thread | [Next in Thread] |