From: Joachim Nilsson <joachim@vmlinux.org>
Cc: help-gnu-emacs@gnu.org, Joachim Nilsson <joachim.nilsson@vmlinux.org>
Subject: Re: Starting Emacs with different init file
Date: Tue, 28 Oct 2003 18:46:08 +0100 [thread overview]
Message-ID: <3F9EAB60.7090006@vmlinux.org> (raw)
In-Reply-To: <1067362325.4184.3.camel@Hades>
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/>
next prev parent reply other threads:[~2003-10-28 17:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-28 17:20 Starting Emacs with different init file Joachim Nilsson
2003-10-28 17:20 ` Raimund Kohl-Fuechsle
2003-10-28 17:32 ` Dan Anderson
2003-10-28 17:46 ` Joachim Nilsson [this message]
[not found] ` <mailman.2613.1067363441.21628.help-gnu-emacs@gnu.org>
2003-10-28 19:40 ` Kevin Rodgers
2003-10-29 7:18 ` Tim X
[not found] <mailman.2609.1067362003.21628.help-gnu-emacs@gnu.org>
2003-10-28 18:00 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3F9EAB60.7090006@vmlinux.org \
--to=joachim@vmlinux.org \
--cc=help-gnu-emacs@gnu.org \
--cc=joachim.nilsson@vmlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).