Cygwin emacs
To get Emacs to work under Cygwin 1.7.1, I did the following. First, added the cygwin-mount extension.
<geshi lang=bash"> $ cd /usr/share/emacs/site-lisp/ $ wget http://www.khngai.com/emacs/cygwin-mount.el --2010-01-14 10:59:05-- http://www.khngai.com/emacs/cygwin-mount.el Resolving localhost... 127.0.0.1 Connecting to localhost|127.0.0.1|:3128... connected. Proxy request sent, awaiting response... 200 OK Length: 31496 (31K) [text/plain] Saving to: `cygwin-mount.el'
100%[=================================================================================================================>] 31,496 182K/s in 0.2s
2010-01-14 10:59:06 (182 KB/s) - `cygwin-mount.el' saved [31496/31496] </geshi>
Second, I created this ~/.emacs file <geshi> (setenv "PATH" (concat "c:/cygwin/bin;" (getenv "PATH"))) (setq exec-path (cons "c:/cygwin/bin" exec-path)) (require 'cygwin-mount) (cygwin-mount-activate) (add-hook 'comint-output-filter-functions
'shell-strip-ctrl-m nil t)
(add-hook 'comint-output-filter-functions
'comint-watch-for-password-prompt nil t)
(setq explicit-shell-file-name "bash.exe")
- For subprocesses invoked via the shell
- (e.g., "shell -c command")
(setq shell-file-name explicit-shell-file-name) </geshi>