From: Tim X <timx@spamto.devnul.com>
Subject: Re: Starting Emacs with different init file
Date: 29 Oct 2003 18:18:43 +1100 [thread overview]
Message-ID: <87fzhcse98.fsf@tiger.rapttech.com.au> (raw)
In-Reply-To: mailman.2613.1067363441.21628.help-gnu-emacs@gnu.org
>>>>> "Joachim" == Joachim Nilsson <joachim@vmlinux.org> writes:
Joachim> 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.
Joachim> Yep.
>> I wonder if you did something like: (load-file "./.emacs") in your
>> .emacs, would that work?
Joachim> That did the trick!
Joachim> Now, if only I knew how to traverse up the dir tree from
Joachim> where I start emacs and let it take the first init file one
Joachim> it finds until it reaches $HOME/.emacs-default. Like this:
Joachim> ~/Work/Projects/Customer_One/Product_Series1/SW/src/
Joachim> ~/Work/Projects/Customer_One/Product_Series1/SW/
Joachim> ~/Work/Projects/Customer_One/Product_Series1/
Joachim> ~/Work/Projects/Customer_One/.emacs
Joachim> or
Joachim> ~/Work/Projects/Customer_Two/Productum/HW/vhdl/
Joachim> ~/Work/Projects/Customer_Two/Productum/HW/
Joachim> ~/Work/Projects/Customer_Two/Productum/
Joachim> ~/Work/Projects/Customer_Two/ ~/Work/Projects/ ~/Work/
Joachim> ~/.emacs-default
Joachim> Looks like a recursive problem to me, and maybe even
Joachim> something I can put together myself even.
What is it about the different projects/jobs that requires totally
different init files? I suspect there is a much better solution, but
without knowing what it is you need different for the various
projects, its impossible to make any suggestion.
Tim
--
Tim Cross
The e-mail address on this message is FALSE (obviously!). My real e-mail is
to a company in Australia called rapttech and my login is tcross - if you
really need to send mail, you should be able to work it out!
next prev parent reply other threads:[~2003-10-29 7:18 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
[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 [this message]
[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=87fzhcse98.fsf@tiger.rapttech.com.au \
--to=timx@spamto.devnul.com \
/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).