[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

using cygwin from within Emacs (was [VoiceCoder] Re: Using a shell with NatSpeak 6.1, Windows 2000?)



Hi Dana,

> Is anyone using a UNIX-style shell with NatSpeak 6.1 on Windows
2000? 

I have used Cygwin's bash shell through Emacs's M-x shell command.
Emacs shell mode can be configured to use various shells. I also use
Emacs shell mode for the windows command line. Select and say is
possible using vr-mode with this configuration.

You could put something like this in your .emacs; I don't know where I
stole this from:

(defun my-shell-setup ()
  "For Cygwin bash under Emacs 20"
  (setq comint-scroll-show-maximum-output 'this)
  (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 ?\")
  (make-variable-buffer-local 'comint-completion-addsuffix))

(setq shell-mode-hook 'my-shell-setup)
;; For the interactive shell
(setq explicit-shell-file-name "c:/cygwin/bin/bash.exe")
;; For subprocesses invoked via the shell (e.g., "shell -c command")
(setq shell-file-name "c:/cygwin/bin/bash.exe")

I haven't been using bash recently, so I apologise if I left out any
important information; however, I can't remember any serious problem
(as long as you don't mind using Emacs).

Chris Gaskett
http://www.his.atr.co.jp/~cgaskett






Why do you want this page removed?