git clone 'git://github.com/Fanael/relative-line-numbers.git'
relative-line-numbers is an Emacs package that displays relative line numbers
on the left margin.
The package is available in MELPA.
If you have MELPA in
M-x package-install RET relative-line-numbers RET
If you don't, open
relative-line-numbers.el in Emacs and call
To toggle the mode in the current buffer:
To toggle the mode globally:
To turn it on automatically everywhere, add the following line to your Emacs init file:
Please note that this package does not rely on
linum. Make sure
is disabled before enabling
relative-line-numberscontrols the way line numbers are displayed.
relative-line-numbers-current-linecontrols the way the current line indicator is displayed.
relative-line-numbers-formatis a function determining how the line numbers are formatted.
relative-line-numbers-motion-functioncontrols the function used to move between lines. This determines whether or not invisible lines are counted and whether physical or visual lines are counted.
relative-line-numbers-delaycontrols the delay before updating the line numbers.
relative-line-numbers-max-countcontrols the maximum number to display. Defaults to 0 : unlimited.