Home » Questions » Computers [ Ask a new question ]

Use Cygwin Bash automatically in Emacs

Use Cygwin Bash automatically in Emacs

I run EmacsW32 on Windows XP.

Asked by: Guest | Views: 223
Total answers/comments: 1
Guest [Entry]

"This seems to have the information you're looking for: http://www.khngai.com/emacs/cygwin.php

Specifically add the following to the .emacs file:

(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)"