all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jeffrey DeLeo <JeffreyDeLeo@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Comint and windows
Date: Thu, 05 Nov 2015 10:26:20 -0800	[thread overview]
Message-ID: <87bnb8nvzn.fsf@JUbuntu.dharma.lan> (raw)
In-Reply-To: 4b118c46-2d1a-4547-b889-02153639a401@googlegroups.com

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


  parent reply	other threads:[~2015-11-05 18:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-05  8:12 Comint and windows Sam Halliday
2015-11-05 16:22 ` Eli Zaretskii
2015-11-05 18:26 ` Jeffrey DeLeo [this message]
2015-11-06 13:04   ` Filipp Gunbin
2015-11-06 15:49     ` Jeffrey DeLeo
     [not found] ` <mailman.1777.1446740565.7904.help-gnu-emacs@gnu.org>
2015-11-07 17:21   ` Sam Halliday

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bnb8nvzn.fsf@JUbuntu.dharma.lan \
    --to=jeffreydeleo@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.