From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Bijan Soleymani Newsgroups: gmane.emacs.help Subject: Re: $HOME var Date: 07 Mar 2003 13:51:40 -0500 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87n0k76mdf.fsf@server.crasseux.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1047062839 5706 80.91.224.249 (7 Mar 2003 18:47:19 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 7 Mar 2003 18:47:19 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 07 19:47:17 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 18rMs5-0001Tf-00 for ; Fri, 07 Mar 2003 19:47:06 +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 18rMrN-0005p7-08 for gnu-help-gnu-emacs@m.gmane.org; Fri, 07 Mar 2003 13:46:21 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!nntp.cs.ubc.ca!newsflash.concordia.ca!snoopy.risq.qc.ca!wesley.videotron.net!weber.videotron.net.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-NNTP-Posting-Host: 24.201.123.149 Original-X-Complaints-To: abuse@videotron.ca Original-X-Trace: weber.videotron.net 1047062648 24.201.123.149 (Fri, 07 Mar 2003 13:44:08 EST) Original-NNTP-Posting-Date: Fri, 07 Mar 2003 13:44:08 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:110911 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:7412 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7412 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? make a batch file as follows: set HOME=X:\directory\that\i\want (where X is the drive you want) set PATH=%PATH%;c:\emacs_directory\bin\ (or wherever emacs is) runemacs.exe (or whatever executable runs emacs) call it emacs.bat and put it on your desktop or wherever. Basically have the first line set your home. Have the second set your path to include emacs. Then just have it run emacs. P.S. Your school is evil for making you use Windows :) Hope that helps, Bijan