I added the following lines to my .emacs.d/init.el to auto-activate linum at startup:
(require 'linum)
(global-linum-mode 1)
(setq linum-format “%d “)
But no way, i still have to manually M-x linum-mode
to make it display line numbers in my C buffers (and all other buffers).
Any idea?
(GNU Emacs 23.2.1, modified by Debian)
~/.emacs/init.elis not loaded automatically, do you mean~/.emacs.d/init.el? According to gnu.org/software/emacs/manual/html_node/emacs/… it will also not automatically load~/.emacs.d/init.elif you have a~/.emacsfile – Ulrich Dangel Jul 10 '12 at 16:58", not“. Then it works for me (at least from my~/.emacsfile). – daniel kullmann Jul 11 '12 at 8:23