I have been using Console2 on an MS Windows box to compile and would like to use Emacs instead. My settings on Console2 are as follows:
shell="c:/mingw/bin/sh.exe --login -i -c 'cd /c/docume~1/admini~1/desktop/;export PATH=/c/mingw/bin:/c/progra~1/git/bin; exec /bin/sh'"
init_dir=""
Q: How can I configure Emacs to use the MinGW stuff from above so that I can run a command such as (compile "make")
in Emacs on a Windows platform?
The following snippet renders an error when trying to compile Emacs from source: "cmdproxy.exe has encountered a problem and needs to close. We are sorry for the inconvenience."
(defun xp-compile ()
(interactive)
(let ((default-directory (w32-short-file-name
"c:/Documents and Settings/Administrator/Desktop/emacs"))
(compilation-environment "PATH=/c/mingw/bin:/c/progra~1/git/bin"))
(compile "make")))
process-environment
variable and generally like to do so on a let-bound basis when calling a custom version ofstart-process
(which callsmake-process
...). In the context of this particular question, I am unsure whether I needsh.exe --login -i -c
to be able to compile using Emacs on a Windows platform and/or whether I also needexec /bin/sh
somewhere in the setup; and, if I need those, then where/how to configure that ...?