3 ==> To set up Emacs to automatically number lines add the following
4 to your ~/.emacs file (GNU Emacs) or ~/.xemacs/init.el file
7 ;; Number lines in all modes
9 ;; Apply numbering to specific modes (example for lisp-mode) [cannot use with global-linum-mode]
10 ;;(add-hook 'lisp-mode-hook (lambda () (linum-mode 1)))