[Top][All Lists]

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

Re: [h-e-w] Emacs Cygwin setup in Vista help

From: Lennart Borgman
Subject: Re: [h-e-w] Emacs Cygwin setup in Vista help
Date: Sat, 12 Sep 2009 19:59:32 +0200

On Sat, Sep 12, 2009 at 7:23 PM, rpd
<address@hidden> wrote:
> Hi
> I guess this question has been asked before but I want to open cygwin bash
> shell in Emacs (Vista O/S).
> I have Cygwin installed but cannot yet open it from Emacs. From my internet
> search I have added Cygwin-mount.el.
> This is what I have in my .emacs (v22.3):
> ;;;;===EMACS CYGWIN (GCC) & Vista======
> ;;;
> ;;To use shell/cmd prompt use M-x shell but
> ;;To use BASH (cygwin) shell use M-x cygwin-shell
> ;;xxxxx EMACS & CYGWIN==========
> ;;
> (load "C:\\Users\\Dad\\Emacs\\emacsaddons\\cygwin-mount.el")
> (setenv "PATH" (concat "c:\\cygwin\\bin;" (getenv "PATH")))
> (setq exec-path (cons "c:\\cygwin\\bin" exec-path))
> (require 'cygwin-mount)
> (cygwin-mount-activate)
> ;;
> ;;Cygwin and EmacsW32
> ;;If you are using emacsW32, then you can go to the cygwin shell by calling
> the command cygwin-shell.
> ;;First, you need to set the cygwin-shell path. This you can do by pulling
> the menu
> ;; under “Options‣Customize emacsW32”. Or, you can put the following line in
> your .emacs:
> ;;“(setq w32shell-cygwin-bin "C:\\cygwin\\bin")”.
> ;;Once you have the w32shell-cygwin-bin set, the command “shell” will also
> invoke cygwin-shell.
> ;;If you want run plain Windows's “cmd.exe” shell, you can call cmd-shell.
> EmacsW32 also has msys-shell,
> ;; which is for those who are using MinGW.
> ;;Note, when using cygwin shell in emacsW32, if the $PATH env var is not set
> correctly, it can cause
> ;; Window to mistakingly popup a dialogue saying some program crashed.
> ;; For a example, see:
> (setq exec-path (cons "C:\\cygwin\\bin" exec-path))
> (setq w32shell-cygwin-bin "C:\\cygwin\\bin")
> ;;
> ;;
> ;;
> ;===
> Using M-x shell -I get Windows command shell
> Using M-x cygwin-shell ret I get 'no match'
> I am most grateful if someone could advise on what I need to do to open
> cygwin shell.
> I look forward to helpful replies so I can do this, many thanks

cygwin-shell etc comes with Emacs+EmacsW32, see

reply via email to

[Prev in Thread] Current Thread [Next in Thread]