From WikEmacs
Jump to: navigation, search
Description display line numbers in the margin
Author Markus Triska <>
Maintainer FSF
Part of Emacs yes

linum is a mode displaying line numbers in the left margin of the buffer.

Basic setup

To globally enable linum for all buffers, add this to your Emacs configuration file:

(global-linum-mode 1)

You can also enable linum on a per-buffer basis using M-x linum-mode.

See Also