[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to set environment for the compile command in Win32?
From: |
Kin Cho |
Subject: |
Re: How to set environment for the compile command in Win32? |
Date: |
22 Apr 2004 12:08:15 -0700 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
Put something like this into your .emacs:
(setenv "PATH" (concat (getenv "PATH") ";" "c:/my-path"))
(setenv "INCLUDE" "c:/my-include")
Now your M-x shell or compile will inherit these settings.
-kin
Steinar Bang <sb@dod.no> writes:
> System: Intel Pentium M, Windows XP Professional,
> GNU Emacs 21.3 (binary as distributed by FSF)
>
> I'm trying to set enviroment variables (PATH, INCLUDE, LIB, etc.) for
> the
> M-x compile RET
> command.
>
> Is there a way to do this from inside emacs?
>
> I've set the enviroment for the
> M-x shell RET
> command, by putting "set" commands into the
> %HOME%\.emacs_cmdproxy.exe
> file. And that works. But this file isn't run before the compile
> command is run.
>
> Thanx!
>
>
> - Steinar