all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Endless Story" <usable.thought@gmail.com>
Subject: How to set default directory in .emacs init file?
Date: 11 Dec 2006 09:03:23 -0800	[thread overview]
Message-ID: <1165856603.257781.54000@n67g2000cwd.googlegroups.com> (raw)

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.

             reply	other threads:[~2006-12-11 17:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-11 17:03 Endless Story [this message]
2006-12-11 17:47 ` How to set default directory in .emacs init file? Drew Adams
2006-12-11 18:17   ` Lennart Borgman
     [not found]   ` <mailman.1763.1165861030.2155.help-gnu-emacs@gnu.org>
2006-12-11 18:26     ` Endless Story

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1165856603.257781.54000@n67g2000cwd.googlegroups.com \
    --to=usable.thought@gmail.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.