From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jasonr (Jason Rumney) @ f2s.com Newsgroups: gmane.emacs.help Subject: Re: winows emacs - portable app Date: Wed, 19 Apr 2006 07:17:42 +0100 Organization: freedom2surf Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1145428834 8614 80.91.229.2 (19 Apr 2006 06:40:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Apr 2006 06:40:34 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 19 08:40:30 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FW6MX-00080N-BJ for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Apr 2006 08:40:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FW6MW-0000hj-St for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Apr 2006 02:40:28 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!news.germany.com!solnet.ch!solnet.ch!news.clara.net!wagner.news.clara.net!peernews.inweb.co.uk!news.freedom2surf.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: i-83-67-23-108.freedom2surf.net Original-X-Trace: news.freedom2surf.net 1145427552 19781 83.67.23.108 (19 Apr 2006 06:19:12 GMT) Original-X-Complaints-To: abuse@freedom2surf.net Original-NNTP-Posting-Date: Wed, 19 Apr 2006 06:19:12 +0000 (UTC) X-Face: .PruP48JRO{Z6Rfz?YkZ>)zR+7!Up"`!1Cvq{fGd)@K; y]C:8r\CrJ^Mj\_U"9*WD2 I#zdK_#tw]y9*Y$?ge&b23Zt7zpknL{)F7Px4DVSY6b9dg[^VtkN-R_$YJ0cL''j[, }O#k{k| User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) Cancel-Lock: sha1:Vay2DzdJ/aHZt5GY2VNlhvy6McI= Original-Xref: shelby.stanford.edu gnu.emacs.help:138827 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:34445 Archived-At: "Ryan Moszynski" 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