unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Display window line numbers
@ 2022-12-06 17:10 Juri Linkov
  2022-12-06 18:04 ` João Paulo Labegalini de Carvalho
  2022-12-06 18:14 ` Eli Zaretskii
  0 siblings, 2 replies; 6+ messages in thread
From: Juri Linkov @ 2022-12-06 17:10 UTC (permalink / raw)
  To: emacs-devel

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'.



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-12-06 18:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-06 17:10 Display window line numbers Juri Linkov
2022-12-06 18:04 ` 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

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).