From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: How to set default directory in .emacs init file? Date: Mon, 11 Dec 2006 19:17:02 +0100 Message-ID: <457DA09E.5020009@student.lu.se> References: NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1165861072 22780 80.91.229.10 (11 Dec 2006 18:17:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 11 Dec 2006 18:17:52 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 11 19:17:50 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1Gtpio-00069F-Eh for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Dec 2006 19:17:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gtpin-0008H1-NY for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Dec 2006 13:17:49 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gtpi7-0007vx-MF for help-gnu-emacs@gnu.org; Mon, 11 Dec 2006 13:17:07 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gtpi1-0007pn-42 for help-gnu-emacs@gnu.org; Mon, 11 Dec 2006 13:17:05 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gtpi0-0007oq-0M for help-gnu-emacs@gnu.org; Mon, 11 Dec 2006 13:17:00 -0500 Original-Received: from [80.76.149.213] (helo=ch-smtp02.sth.basefarm.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Gtphz-0000N3-RG for help-gnu-emacs@gnu.org; Mon, 11 Dec 2006 13:17:00 -0500 Original-Received: from c83-254-145-24.bredband.comhem.se ([83.254.145.24]:65417 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.63) (envelope-from ) id 1Gtphx-00025G-8k; Mon, 11 Dec 2006 19:16:58 +0100 User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) Original-To: Drew Adams In-Reply-To: X-Antivirus: avast! (VPS 0656-0, 2006-12-11), Outbound message X-Antivirus-Status: Clean X-Scan-Result: No virus found in message 1Gtphx-00025G-8k. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1Gtphx-00025G-8k d64335cba87dc06ed383b073dfca9ad6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:39428 Archived-At: Drew Adams wrote: >> But I've just installed gnu emacs for Windows on my XP desktop, and >> annoyingly, the Find File command starts looking in the install >> directory for emacs! I'd like it to start in my data directory, which >> is in a totally separate partition. >> > > There may be a better way, but I just specify the starting directory in the > Windows shortcut I use to start emacs. Right-click the shortcut that has > this as target: C:\your\path\to\runemacs.exe, and put the folder you want in > the "Start in:" field - e.g. C:\your\directory. > > I also provide the same directory to runemacs.exe, so that I start Emacs in > Dired: C:\your\path\to\runemacs.exe "C:\your\directory". HTH. > If you start Emacs in another way (for example through emacsclient) you can just add something like (setq default-directory "c:/my/data/path/") to your .emacs