how to set CYGWIN variable for Emacs
Fri Jan 12 08:11:00 GMT 2001
What's the recommended way to set the CYGWIN environment variable
when running in an NTEmacs shell buffer?
The CygWin FAQ gives instructions at
...you need to add the following code to your ~/.emacs or ~/_emacs file
in order to use bash. ...
;; This assumes that Cygwin is installed in C:\cygwin (the
;; default) and that C:\cygwin\bin is not already in your
;; Windows Path (it generally should not be).
(setq exec-path (cons "C:/cygwin/bin" exec-path))
(setenv "PATH" (concat "C:\\cygwin\\bin;" (getenv "PATH")))
;; NT-emacs assumes a Windows command shell, which you change
(setq process-coding-system-alist '(("bash" . undecided-unix)))
(setq w32-quote-process-args ?\")
(setq shell-file-name "bash")
(setenv "SHELL" shell-file-name)
(setq explicit-shell-file-name shell-file-name)
;; This removes unsightly ^M characters that would otherwise
;; appear in the output of java applications.
However, this seems to run bash directly, bypassing the cygwin.bat
Should Emacs run cygwin.bat directly? Should the CYGWIN variable be
set in some place other than cygwin.bat (e.g., in Emacs or in the
NT environment) so that it gets set even if cygwin.bat isn't run?
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin