Skip to content
display relative line number in the left margin in emacs
Emacs Lisp Makefile
Latest commit b8a99dc May 10, 2016 @coldnew Merge pull request #34 from thierryvolpiatto/master
Ensure linum-relative is not enabled in helm with linum-relative-global-mode (#29).


display relative line number in emacs.

License GPLv2 MELPA MELPA Stable


linum-relative lets you display relative line numbers for current buffer.


If you have melpa and emacs24 installed, simply type:

M-x package-install linum-relative

And add the following to your .emacs

(require 'linum-relative)

Setup & Tips

The non-interactive function linum-on (which should already be built into recent GNU Emacs distributions), turns on side-bar line numbering:


and alternatively, by enabling linum-mode:

M-x linum-mode

Relative line numbering should already be enabled by default (by installing this package), following linum-on or enabling linum-mode. One can also use the linum-relative-toggle interactive function to switch between relative and non-relative line numbering:

M-x linum-relative-toggle

Function Documentation


Return non nil when in an helm session.


Turn ON linum-relative.


Turn OFF linum-relative.


Toggle between linum-relative and linum.

Markdown README file generated by make-readme-markdown.el
Something went wrong with that request. Please try again.