unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Matthew Plant <maplant95@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: Emacs26: Quick thoughts on display-line-numbers-mode
Date: Thu, 05 Oct 2017 11:52:01 -0700	[thread overview]
Message-ID: <1507229521.6891.6.camel@gmail.com> (raw)
In-Reply-To: <CA+OMD9h5Z4Kc+iX7dNHyBggfsg1xw-OA-9ctsJfHjRTdhXtq_w@mail.gmail.com>

I agree with this, and also think there should be more customization
options.

Previously with linum I set the background of the fringe to be
different from the background of the buffer, so that the line number
column was distinct from the rest of the text buffer. It would be great
to have this option back, especially as I was excited that the
background color would finally reach the bottom of the screen when I
was reading the end of a file.

I think the two options needed for both of us would perhaps be some
sort of format string (perhaps identical to linum mode's) and then some
background option.

That being said display-line-numbers-mode effectively saved my desktop
experience. I have a 4k display so I will often have four windows of
the same file open vertically. I was recently doing this with a file
that is about 2k lines and inputting characters was causing so much
slow down that emacs was near unusable. Of course, profiling indicated
and action confirmed that linum mode was to blame.

Additionally with this change I can finally get rid of the fringe,
which makes resizing via mouse much easier.

On Thu, 2017-10-05 at 14:38 -0400, Robert Weiner wrote:
> I took a quick look at display-line-numbers-mode (nice work as
> always) and had a few thoughts:
> 
> 1. The similar linum-mode when possible displays a subtle vertical
> separator between the line numbers and the left margin of the text
> area.  This helps to visually parse the numbers as separate from the
> text and helps identify where the first text character is.  It would
> be good to have something similar at least as an option.
> 
> Then linum-mode should be removed (maybe add an alias) so there is no
> confusion as to which mode should be used.
> 
> 2. The mode-line popup menu that displays/hides line and col numbers
> in the mode=line could be expanded to toggle this mode on and off
> locally and globally, as well as providing options for its various
> display settings: relative, visual and absolute.
> 
> Bob
> 
> 
> 



  reply	other threads:[~2017-10-05 18:52 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-05 18:38 Emacs26: Quick thoughts on display-line-numbers-mode Robert Weiner
2017-10-05 18:52 ` Matthew Plant [this message]
2017-10-05 19:13   ` Eli Zaretskii
     [not found]     ` <1507232129.15251.12.camel@gmail.com>
2017-10-05 19:50       ` Eli Zaretskii
2017-10-05 20:07         ` Matthew Plant
2017-10-05 23:24         ` Alex
2017-10-06  6:48           ` Eli Zaretskii
2017-10-07 21:12             ` Alex
2017-10-08  7:44               ` Eli Zaretskii
2017-10-09  0:06                 ` Alex
2017-10-05 19:02 ` Eli Zaretskii
2017-10-05 19:44   ` Robert Weiner
2017-10-05 19:58     ` Eli Zaretskii
2017-10-05 21:34       ` Robert Weiner
2017-10-06  3:09       ` Matthew Plant
2017-10-06  7:26         ` Eli Zaretskii
2017-10-06  7:50           ` Matthew Plant
2017-10-06  8:16             ` Eli Zaretskii
2017-10-06 12:37               ` Stefan Monnier
2017-10-06 13:06                 ` Eli Zaretskii
2017-10-06 13:25                   ` John Wiegley
2017-10-06 14:17                     ` Eli Zaretskii
2017-10-06 18:47                       ` John Wiegley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1507229521.6891.6.camel@gmail.com \
    --to=maplant95@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).