PDA

View Full Version : [SOLVED] .emacs file not having effect



japhyr
November 26th, 2009, 11:19 PM
Hello,

I am trying to customize emacs 22.2 on Jaunty 9.04. I created a .emacs file and saved it in my /home/username/ directory, but it does not seem to have any effect. The file is empty except for one line, (linum-mode). When I start emacs now and open a file, I do not see line numbers.

Is there something I need to do to tell emacs to look for the configuration file?

Brandon Williams
November 27th, 2009, 05:50 PM
You want this:

(require 'linum)
(global-linum-mode)

Brandon Williams
November 27th, 2009, 05:50 PM
... deleted double post ...

japhyr
November 27th, 2009, 08:13 PM
Thanks for the reply. I realized I also needed to download the linum.el file for it to work.

jpkotta
November 28th, 2009, 08:05 PM
You want this:

(require 'linum)
(global-linum-mode)


(global-linum-mode 1)
Without an argument, it just toggles the mode. 99% of the time it will work without the 1. What you really want is to turn it on, not toggle it from the default. This goes for any minor modes.