unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: jasonr (Jason Rumney) @  f2s.com
Subject: Re: winows emacs - portable app
Date: Wed, 19 Apr 2006 07:17:42 +0100	[thread overview]
Message-ID: <u4q0qnl6h.fsf@jasonrumney.net> (raw)
In-Reply-To: mailman.554.1145413305.9609.help-gnu-emacs@gnu.org

"Ryan Moszynski" <ryan.m.lists@gmail.com> writes:

> , and it seems like the only thing that is keeping me from having a
> "real" portable app is that i don't know how to tell emacs to look for
> me .emacs config file on my thumbdrive rather than in the emacs
> directory that it usually is in on my windows machine.

Emacs will automatically load site-lisp/site-start.el before your
.emacs, so you can change user-init-file there.

> the problem i see is that the windows drive name will be different
> depending on whatever pc/usb slot combination that you happen to be
> using.  For example, on my laptop, my usb drive is I:, while the lab
> pc i am working on right now, the usb drive i am using is named F:

You could try leaving the drive letter off, so it defaults to the
current drive. If that doesn't work, then
(substring command-line-default-directory 0 2) or
(substring (car command-line-args) 0 2) should give you the drive
Emacs is running from.

> if not, is there a command that i can run, after starting emacs, where
> i can point it manually to my .emacs on wherever my thumbdrive is, and
> it will run that particular .emacs whenever  i tell it to?

M-x load-file

       reply	other threads:[~2006-04-19  6:17 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.554.1145413305.9609.help-gnu-emacs@gnu.org>
2006-04-19  6:17 ` Jason Rumney [this message]
2006-04-19  8:31   ` winows emacs - portable app Eli Zaretskii
2006-04-19 15:08     ` Drew Adams
2006-04-19 17:47       ` Eli Zaretskii
2006-04-19 17:47 Ryan Moszynski
2006-04-19 17:58 ` Eli Zaretskii
2006-04-19 20:48 ` Rasmus Pank Roulund
  -- strict thread matches above, loose matches on Subject: below --
2006-04-19 12:10 Ryan Moszynski
2006-04-19 16:27 ` Kevin Rodgers
2006-04-19 17:32 ` Eli Zaretskii
2006-04-19  2:21 Ryan Moszynski

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=u4q0qnl6h.fsf@jasonrumney.net \
    --to=jasonr@f2s.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).