unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'rustom'" <rustompmody@gmail.com>, <help-gnu-emacs@gnu.org>
Subject: RE: default directory for windows
Date: Wed, 13 Feb 2008 08:44:24 -0800	[thread overview]
Message-ID: <000601c86e5f$b18cc3c0$9eb22382@us.oracle.com> (raw)
In-Reply-To: <9bf9bf15-3c7e-4d00-9c25-7a367ee8742b@s13g2000prd.googlegroups.com>

> One of the (many) problems I have using emacs under windows is that ti
> starts off with the pwd being in the directory where emacs is
> installed rather than my home.
> 
> So my .emacs has (cd "~") to get around this
> 
> But I imagine this is not the proper way to correcting the problem. Is
> there not some 'pre-variable' from which default-directory is set?

Since the subject line mentions Windows... this is what I do:

Create a shortcut to runemacs.exe, and use that to start Emacs. In the
shortcut definition (right-click > Properties), Shortcut tab, field "Start
in:", put the directory where you want Emacs to start. Using the shortcut
then starts Emacs in Dired mode in that directory (which is what I want).

Otherwise, yes, just use `cd' in your init file. Or you can do (setq
default-directory "C:/your/path/to/dir") in your init file. See also
variable `dired-directory-alist', which lets you set the `default-directory'
for different modes.

If you use emacsclient (e.g. if you use EmacsW32), you can also no doubt
specify the startup directory for that. And you can specify a startup
directory on the command line, using option `-f' and a function that cd's to
your directory - see `M-x man RET emacs'.





      parent reply	other threads:[~2008-02-13 16:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-13 14:48 default directory for windows rustom
2008-02-13 16:05 ` Joost Kremers
2008-02-13 16:44 ` Drew Adams [this message]

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to='000601c86e5f$b18cc3c0$9eb22382@us.oracle.com' \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=rustompmody@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).