tags:

views:

80

answers:

2

Hello,

I want to make that would in all the buffers which I had opened were line numbers in GNU/Emacs. In my .emacs i try to add:

(linum-mode t)

but it's not helped me.

Thank you

+5  A: 

Try with that in your .emacs:

(require 'linum)
(global-linum-mode)
Cedric H.
Yes, it's helpful. Thank you!
shk
There's a typo, you should have :(require 'linum)(global-linum-mode)
Jérôme Radix
@Jerome: Right, corrected.
Cedric H.
You can get rid of the "require": global-linum-mode is autoloaded
Jürgen Hötzel
+1  A: 

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

eg. %5d for 5 char padding.

M-x customize-group RET linum RET for all the options.

slomojo