all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lennart Borgman <lennart.borgman.073@student.lu.se>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to set default directory in .emacs init file?
Date: Mon, 11 Dec 2006 19:17:02 +0100	[thread overview]
Message-ID: <457DA09E.5020009@student.lu.se> (raw)
In-Reply-To: <DNEMKBNJBGPAOPIJOOICEEOEDJAA.drew.adams@oracle.com>

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

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

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-11 17:03 How to set default directory in .emacs init file? Endless Story
2006-12-11 17:47 ` Drew Adams
2006-12-11 18:17   ` Lennart Borgman [this message]
     [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=457DA09E.5020009@student.lu.se \
    --to=lennart.borgman.073@student.lu.se \
    --cc=help-gnu-emacs@gnu.org \
    /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.