Is it possible to show the absolute number of the current line, instead of "0", when in relative line number mode? This is sometimes referred to as "hybrid line number mode".
Like this:
7
6 this.oscs[i].oscillator.start();
5 }
4
3 this.bindController();
2 };
1
252 factory.stop = function () { <- current line number shows
1 console.log('theremin: now in stop 2');
2 this.leapController.disconnect();
3 //this.leapController.removeListener('frame', factory.ctrlFrameHandler);
4 //this.leapController.removeListener('frame', this.ctrlFrameHandler);
5 this.leapController.removeListener('frame', this.leapController.listeners('frame')[0]);
I am running evil, and activate relative line number mode in my .emacs like so:
(linum-mode)
(linum-relative-global-mode)
I don't see any packages for this, or any customization available for it in the existing packages. I'm somewhat familiar with elisp, so it might be possible to figure out how to hook the existing code e.g with advice, but I'd rather avoid going that route if possible.
Many Thanks.
linum-relative-global-mode
is provided byevil
?display-line-numbers
torelative
anddisplay-line-numbers-current-absolute
tot
(the default).