emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Display window line numbers


From: Juri Linkov
Subject: Display window line numbers
Date: Tue, 06 Dec 2022 19:10:43 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]