Cygwin emacs

From EggeWiki
Jump to navigation Jump to search

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 --2010-01-14 10:59:05-- Resolving localhost... Connecting to localhost||: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>