[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Starting Emacs with different init file
From: |
Joachim Nilsson |
Subject: |
Re: Starting Emacs with different init file |
Date: |
Tue, 28 Oct 2003 18:46:08 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20031015 Debian/1.4-0jds2 |
Dan Anderson wrote:
You could leave an empty .emacs file on your main file, and then M-x
load-file RET filename to load the .emacs file from the directory, but
that would probably be more trouble then it's worth.
Yep.
I wonder if you did something like:
(load-file "./.emacs")
in your .emacs, would that work?
That did the trick!
Now, if only I knew how to traverse up the dir tree from where I start
emacs and let it take the first init file one it finds until it reaches
$HOME/.emacs-default. Like this:
~/Work/Projects/Customer_One/Product_Series1/SW/src/
~/Work/Projects/Customer_One/Product_Series1/SW/
~/Work/Projects/Customer_One/Product_Series1/
~/Work/Projects/Customer_One/.emacs
or
~/Work/Projects/Customer_Two/Productum/HW/vhdl/
~/Work/Projects/Customer_Two/Productum/HW/
~/Work/Projects/Customer_Two/Productum/
~/Work/Projects/Customer_Two/
~/Work/Projects/
~/Work/
~/.emacs-default
Looks like a recursive problem to me, and maybe even something I can put
together myself even.
Thanks!
/Joachim
--
Joachim Nilsson :: <joachim AT vmlinux DOT org>
+46(0)21-123348 :: <http://vmlinux.org/joachim/>