From: Juri Linkov <juri@linkov.net>
To: emacs-devel@gnu.org
Subject: Display window line numbers
Date: Tue, 06 Dec 2022 19:10:43 +0200 [thread overview]
Message-ID: <86tu2apdio.fsf@mail.linkov.net> (raw)
I wonder why ‘display-line-numbers’ doesn't provide an option
to display line numbers relative to the window-start?
IMHO, one of the most reasonable excuses to sacrifice the screen space
for line numbers is to display only these short numbers that could be
used to jump to a line visible on the screen. For that the quickest
key sequence is e.g. 'M-5 M-r'.
Then all possibilities will be covered by these options of
‘display-line-numbers’:
- absolute line numbers can be used by 'M-g M-g' (goto-line);
- relative line numbers - by 'C-u N C-n' and 'C-u N C-p';
- window line numbers - by 'M-r'.
next reply other threads:[~2022-12-06 17:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-06 17:10 Juri Linkov [this message]
2022-12-06 18:04 ` Display window line numbers João Paulo Labegalini de Carvalho
2022-12-06 18:43 ` Juri Linkov
2022-12-06 18:14 ` Eli Zaretskii
2022-12-06 18:44 ` Juri Linkov
2022-12-06 18:53 ` 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=86tu2apdio.fsf@mail.linkov.net \
--to=juri@linkov.net \
--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.