From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Chris McMahan Newsgroups: gmane.emacs.help Subject: Re: $HOME var Date: 07 Mar 2003 16:38:33 -0500 Organization: PANIX Public Access Internet and UNIX, NYC Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1047073266 21607 80.91.224.249 (7 Mar 2003 21:41:06 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 7 Mar 2003 21:41:06 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 07 22:41:03 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18rPaQ-0005bz-00 for ; Fri, 07 Mar 2003 22:41:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18rPa0-0006sN-02 for gnu-help-gnu-emacs@m.gmane.org; Fri, 07 Mar 2003 16:40:36 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!panix!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 54 Original-NNTP-Posting-Host: panix2.panix.com Original-X-Trace: reader2.panix.com 1047073123 679 166.84.1.2 (7 Mar 2003 21:38:43 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Fri, 7 Mar 2003 21:38:43 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Xref: shelby.stanford.edu gnu.emacs.help:110913 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:7414 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7414 Why not set the environment variables from within emacs? This won't help you load the .emacs file itself, but you can modify the icon with which you launch emacs to load that file as a command-line switch. runemacs.exe -l within your .emacs, use the format to set the environment variables: (setenv "VARIABLE" "value") So to set your HOME variable from within emacs, (setenv "HOME" "c:/documents\ and\ settings/username") I may be completely missing something here, because I'm pretty heavily embroiled into the cygwin environment on XP. - Chris Anthony G writes: > Hello, > > I have a minor problem with Emacs for windows. Emacs works great on > my Linux system at home, but at College where I spend a considerable > amount of time coding, I have to use windows 2000. The problem is > as follows; Windows environment variables are set & locked on > login. I can't add or change them, and command.exe is locked > out. $HOME, for some FUBAR reason, is set to C:\, yet I don't have > write permission FOR C:\. This means when I'm halfway through > editing a file, emacs tries to save '.emacs.d' (or similar) to C: > every microsecond. It doesn't hang, but It's so occupied in saving > the file, that I need to enter commands quickly. I can't disable it > in .emacs, because I can't save anything to $HOME (C:\), including > .emacs. Can I change $HOME in the emacs lisp files, or even an > argument? > > I'm an *ex* vim user, and enjoy learning emacs, but not being able > to use emacs instead of the lame IDE that comes with the College's > Java package, is a problem that needs to be resolved. > > > Thanks, > > /Tony > > -- (. .) =ooO=(_)=Ooo======================== Chris McMahan | cmcmahan-AT-one.net ====================================