From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: winows emacs - portable app Date: Wed, 19 Apr 2006 11:31:50 +0300 Message-ID: References: NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1145435528 28925 80.91.229.2 (19 Apr 2006 08:32:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Apr 2006 08:32:08 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 19 10:32:07 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 1FW86W-0001Ir-40 for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Apr 2006 10:32:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FW86V-0007LZ-HL for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Apr 2006 04:32:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FW86K-0007LU-CZ for help-gnu-emacs@gnu.org; Wed, 19 Apr 2006 04:31:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FW86I-0007LE-Dc for help-gnu-emacs@gnu.org; Wed, 19 Apr 2006 04:31:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FW86I-0007LA-94 for help-gnu-emacs@gnu.org; Wed, 19 Apr 2006 04:31:50 -0400 Original-Received: from [192.114.186.20] (helo=nitzan.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FW87M-0007pu-2o for help-gnu-emacs@gnu.org; Wed, 19 Apr 2006 04:32:56 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-206-41.inter.net.il [80.230.206.41]) by nitzan.inter.net.il (MOS 3.7.3-GA) with ESMTP id DDW70461 (AUTH halo1); Wed, 19 Apr 2006 11:31:45 +0300 (IDT) Original-To: help-gnu-emacs@gnu.org In-reply-to: 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:34447 Archived-At: > From: jasonr (Jason Rumney) @ f2s.com > Date: Wed, 19 Apr 2006 07:17:42 +0100 > > > 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 But note that this will not always have the same effect as loading .emacs as an init file, because Emacs loads the init file half way through its startup procedure, precisely in time to customize certain aspects of the appearance before they are set to default. For example, if your .emacs is setting parameters of the initial frame, those settings will not work if you load .emacs after startup. So I think Jason's suggestions to find out the drive letter, if you put the respective code in site-start.el, are the best solution.