I enable them by pressing: M-x linum-mode
. How can I "translate" that into my.emacs file in order to enable it automatically every time I open EMACS?
By default, Emacs displays the current line number of the point in the mode line. You can toggle this feature off or on with the command M-x line-number-mode , or by setting the variable line-number-mode .
Instructions are in the file: place the file into the Emacs load-path and add (require 'linum-off) to ~/. emacs. This script turns off line numbering for the modes specified only.
If you're running it in a terminal ( emacs -nw ), then it's M-x line-number-mode . M- is usually the Windows key, but may be Alt , or you can press Esc followed by x .
Drop (global-linum-mode t)
into your .emacs
if you want it for every buffer. Otherwise, you can add a function to the appropriate hook of modes you're interested in to enable it for just that mode.
You should really read though the manual like I suggested in the last question of yours that I answered. ;)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With