Skip to content

Instantly share code, notes, and snippets.

@yujiorama
Created June 11, 2010 04:51
Show Gist options
  • Save yujiorama/434056 to your computer and use it in GitHub Desktop.
Save yujiorama/434056 to your computer and use it in GitHub Desktop.
;; shell-mode では cygwin の bash
(setq explicit-shell-file-name "bash")
(setq shell-file-name "sh.exe")
(setq shell-command-switch "-c")
(add-hook 'shell-mode-hook 'pcomplete-shell-setup)
(modify-coding-system-alist 'process ".*sh\\.exe" 'utf-8-dos)
;; grep するときはモード限定して cmdproxy
(add-hook 'grep-mode-hook
(lambda ()
(setq explicit-shell-file-name "cmdproxy.exe")
(setq shell-file-name "cmdproxy.exe")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment