Line numbers in all emacs buffers

I want to do this in all the buffers that I opened, these are the line numbers in GNU / Emacs. In my .emacs, I'm trying to add:

(linum-mode t)

but it didn’t help me.

thank

+3
source share
2 answers

Try with .emacs:

(require 'linum)
(global-linum-mode)
+10
source

You can also customize the line number format using printf formatting.

eg. %5dfor 5 char additions.

M- x customize-group RET linum RETfor all parameters.

+3
source

Source: https://habr.com/ru/post/1762456/


All Articles