all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chris McMahan <cmcmahan+n@one.net>
Subject: Re: $HOME var
Date: 07 Mar 2003 16:38:33 -0500	[thread overview]
Message-ID: <u3cly7t7q.fsf@one.net> (raw)
In-Reply-To: mailman.2931.1047032076.21513.help-gnu-emacs@gnu.org


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 <path to your .emacs file>

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 <goggs@bur.st> 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
  ====================================

  parent reply	other threads:[~2003-03-07 21:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.2931.1047032076.21513.help-gnu-emacs@gnu.org>
2003-03-07 11:21 ` $HOME var Torsten Müller
2003-03-07 18:48   ` Bijan Soleymani
2003-03-07 18:51 ` Bijan Soleymani
2003-03-07 21:38 ` Chris McMahan [this message]
2003-03-08  9:24   ` Eli Zaretskii
     [not found] ` <mailman.2983.1047115759.21513.help-gnu-emacs@gnu.org>
2003-03-10 19:07   ` Kevin Rodgers
2003-03-11  4:31     ` Eli Zaretskii
2003-03-07 10:49 Victor Kirk
  -- strict thread matches above, loose matches on Subject: below --
2003-03-07 10:13 Anthony G

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=u3cly7t7q.fsf@one.net \
    --to=cmcmahan+n@one.net \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.