From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Endless Story" Newsgroups: gmane.emacs.help Subject: How to set default directory in .emacs init file? Date: 11 Dec 2006 09:03:23 -0800 Organization: http://groups.google.com Message-ID: <1165856603.257781.54000@n67g2000cwd.googlegroups.com> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1165858891 14066 80.91.229.10 (11 Dec 2006 17:41:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 11 Dec 2006 17:41:31 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 11 18:41:30 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 1Gtp9U-00083C-RB for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Dec 2006 18:41:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gtp9U-0007qu-5m for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Dec 2006 12:41:20 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!n67g2000cwd.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-NNTP-Posting-Host: 162.84.224.81 Original-X-Trace: posting.google.com 1165856609 15504 127.0.0.1 (11 Dec 2006 17:03:29 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 11 Dec 2006 17:03:29 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.02 (Windows NT 5.1; U; en),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: n67g2000cwd.googlegroups.com; posting-host=162.84.224.81; posting-account=JP8pbg0AAADYDr61n41ZYs45c0xuivey Original-Xref: shelby.stanford.edu gnu.emacs.help:143824 Original-To: help-gnu-emacs@gnu.org 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:39426 Archived-At: I don't have this problem running emacs on my Linux desktop - I start out in the scratch buffer and when I use Find File, it starts looking in my home directory. I'm OK with that. 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. Supposedly this is controlled by a variable called default-directory. However I didn't bring my lisp book with me to where I'm staying at present, and googling has not produced anything helpful. Is there a simple way to set this in my .emacs file that will actually work? I've already tried using Windows itself to set a value for HOME in System > Advanced > Environmental Variables as my data directory. But this doesn't work - it just tells emacs where to look for the init file, not the value of the default directory.