[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Comint and windows
From: |
Jeffrey DeLeo |
Subject: |
Re: Comint and windows |
Date: |
Thu, 05 Nov 2015 10:26:20 -0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5.50 (gnu/linux) |
I used to use emacs regularly on Windows, along with cygwin. I no longer
do. I did use shell and other processes successfully, this is from my
.emacs on Windows. I can't say what is relevant anymore, though.
#+BEGIN_SRC emacs-lisp
(defun my-shell-setup ()
"For Cygwin bash under Emacs 20"
(setq comint-scroll-show-maximum-output 'this)
(make-variable-buffer-local 'comint-completion-addsuffix))
(setq shell-file-name "bash")
(setenv "SHELL" shell-file-name)
(setq explicit-shell-file-name shell-file-name)
(setq explicit-shell-args '("--login" "-i"))
(setq shell-command-switch "-ic")
(setq explicit-bash-args '("--noediting"))
(setq comint-completion-addsuffix t)
;(setq comint-process-echoes t) ;; reported that this is no longer needed
(setq comint-eol-on-send t)
(setq w32-quote-process-args ?\")
(setq shell-mode-hook 'my-shell-setup)
;; Prevent issues with the Windows null device (NUL)
;; when using cygwin find with rgrep.
(defadvice grep-compute-defaults (around
grep-compute-defaults-advice-null-device)
"Use cygwin's /dev/null as the null-device."
(let ((null-device "/dev/null"))
ad-do-it))
(ad-activate 'grep-compute-defaults)
#+END_SRC