How do I enable line numbers (on the left) every time I open Emacs?

emacs

Solution

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. ;)

Problem

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?

Original source