3

I don't mean hybrid line number mode, I want the absolute line number appears for all the lines, not only the current line number.

3
1

display-line-numbers-mode to display line numbers for the current buffer.

global-display-line-numbers-mode to display line numbers for all buffers.

0

This is done in the linum-relative package

5
  • Is github.com/coldnew/linum-relative/issues/4 implemented? It looks like what the OP is asking for, but it's still open...
    – npostavs
    Dec 23 '16 at 1:38
  • Oh, I misunderstood you. No, having both relative and absolute line numbers for all lines is not implemented. I thought you meant "current line as absolute, rest as relative" Dec 23 '16 at 12:16
  • 3
    Emacs 26 will offer native line number support: reddit.com/r/emacs/comments/6hux6a/…
    – zngguvnf
    Aug 21 '17 at 17:30
  • care to explain how to get absolute line number on current line but relative line numbers on the rest of the lines? It sounded like that's what you were referring to, but I didn't see any way of doing that in the github README for linum-relative
    – dylnmc
    Dec 29 '17 at 18:39
  • In the Setup & Tips section, it says that activating linum-mode should be enough given that you have installed the package Dec 29 '17 at 18:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.