all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Keith David Bershatsky <esq@lawlist.com>
To: emacs-devel@gnu.org
Subject: Line Numbering -- remove leading space; and, customize trailing character.
Date: Thu, 22 Aug 2019 18:53:58 -0700	[thread overview]
Message-ID: <BE452553-90A0-4CBB-844C-3A0F26DAE68F@lawlist.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1390 bytes --]

I am uncertain whether this issue has already been discussed ad nauseam, either when built-in line numbering first came out or sometime thereafter, but here goes anyway ...  In a recent thread on emacs.stackexchange.com, a user did a comparison screenshot between the new built-in line numbers and the old ones that were generated via Lisp.  In that thread, the user wondered what could be done to shrink the width of the built-in line numbering ...

https://emacs.stackexchange.com/questions/52269/how-to-change-line-number-gutter-width-using-display-line-numbers-mode

I posted an answer pointing the O.P. to the variable `display-line-numbers-width' and its doc-string.  In addition, I made reference to the two lines in maybe_produce_line_number responsible for the left/right space padding surrounding the line numbers.

All of that got me thinking ... how would it look if I removed the leading space and changed the trailing space into a "|" symbol?  Attached is a screenshot of what this looks like ...

Have there been some requests to customize the leading/trailing spaces, and, if so, what was the consensus?  If not, then it may be something worth considering ....  I think the attached screenshot looks kind of nifty, and saves me 11 pixels of screen real estate after eliminating one character (the space) on the left, which happens to be my frame-char-width ...



[-- Attachment #2: line_numbers_mod_001.png --]
[-- Type: image/png, Size: 428412 bytes --]

             reply	other threads:[~2019-08-23  1:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-23  1:53 Keith David Bershatsky [this message]
2019-08-23  8:23 ` Line Numbering -- remove leading space; and, customize trailing character Eli Zaretskii

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

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

  git send-email \
    --in-reply-to=BE452553-90A0-4CBB-844C-3A0F26DAE68F@lawlist.com \
    --to=esq@lawlist.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.