From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Joachim Nilsson Newsgroups: gmane.emacs.help Subject: Re: Starting Emacs with different init file Date: Tue, 28 Oct 2003 18:46:08 +0100 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3F9EAB60.7090006@vmlinux.org> References: <3F9EA57A.8020605@vmlinux.org> <1067362325.4184.3.camel@Hades> Reply-To: Joachim Nilsson NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1067363524 465 80.91.224.253 (28 Oct 2003 17:52:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 28 Oct 2003 17:52:04 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Joachim Nilsson Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 28 18:52:01 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AEY0f-0004ZI-00 for ; Tue, 28 Oct 2003 18:52:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AEY0W-0000Vy-Iz for geh-help-gnu-emacs@m.gmane.org; Tue, 28 Oct 2003 12:51:52 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AEXwW-0007tf-Gm for help-gnu-emacs@gnu.org; Tue, 28 Oct 2003 12:47:44 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AEXvd-0006w4-Ip for help-gnu-emacs@gnu.org; Tue, 28 Oct 2003 12:47:20 -0500 Original-Received: from [193.41.214.66] (helo=vmlinux.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1AEXvK-0006VA-U2 for help-gnu-emacs@gnu.org; Tue, 28 Oct 2003 12:46:31 -0500 Original-Received: from crash.vmlinux.org ([213.214.225.58] helo=vmlinux.org ident=crash) by vmlinux.org with esmtp (Exim 3.35 #1 (Debian)) id 1AEXuz-0004oK-00; Tue, 28 Oct 2003 18:46:09 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20031015 Debian/1.4-0jds2 X-Accept-Language: sv, en Original-To: Dan Anderson In-Reply-To: <1067362325.4184.3.camel@Hades> X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:13587 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:13587 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 :: +46(0)21-123348 ::