3 ms·
The modern, Emacs 26+ mode is: display-line-numbers-mode. This (put in config) will enable it for you globally: (global-display-line-numbers-mode 1) linum mod
by TeMPOraL 8y ago
The modern, Emacs 26+ mode is: display-line-numbers-mode. This (put in config) will enable it for you globally:
(global-display-line-numbers-mode 1)
linum mode (and the faster contrib, nlinum mode) were used prior to Emacs 26, and sometimes had some performance issues in large files.
Also, all of those are for displaying line numbers on the left margin. Jumping to a particular line in code works always.
(And if you want to go totally oldschool, use column-number-mode and line-number-mode to see the column and line numbers of your current position displayed in the modeline. Or (shameless plug) install nyan-mode ;).)