* How to set environment for the compile command in Win32?
@ 2004-04-22 18:47 Steinar Bang
2004-04-22 19:08 ` Kin Cho
0 siblings, 1 reply; 2+ messages in thread
From: Steinar Bang @ 2004-04-22 18:47 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How to set environment for the compile command in Win32?
2004-04-22 18:47 How to set environment for the compile command in Win32? Steinar Bang
@ 2004-04-22 19:08 ` Kin Cho
0 siblings, 0 replies; 2+ messages in thread
From: Kin Cho @ 2004-04-22 19:08 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-04-22 19:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-22 18:47 How to set environment for the compile command in Win32? Steinar Bang
2004-04-22 19:08 ` Kin Cho
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).