I tried to put
(when (string-equal system-type "windows-nt")
(progn
(setenv "PATH" C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\QuickTime\QTSystem\;C:\WINDOWS\system32\WindowsPowerShell\v1.0;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Aspell\bin\
> > From: sam jesse <rev...@gmail.com>
> > Cc: help-gnu-em...@gnu.org
>
> > (when (string-equal system-type "windows-nt")
> > (progn
> > (setenv "PATH" "/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin")
>
> Huh? why do you set PATH to a Unixy value when you are on a Windowsmy bad... am using cygwin.
> machine?
so the setenv PATH is equivalent to just setq exec-path? this is great
> You should instead set PATH to the same value you set exec-path (only
> not as a Lisp list):
to know.
Xah
> > (setq exec-path
> > '(
> > "C:/Windows/system32/"
> > "C:/Windows/"
> > "C:/Windows/System32/Wbem/"
> > "C:/Windows/system32/WindowsPowerShell/v1.0/"
> > "C:/Program Files/Aspell/bin/"
> > emacs shell echo %PATH% puts out
>
> > /usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/
>
> Of course! because that's what you set it to, above.