[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[h-e-w] Emacs Cygwin setup in Vista help
From: |
rpd |
Subject: |
[h-e-w] Emacs Cygwin setup in Vista help |
Date: |
Sat, 12 Sep 2009 10:23:13 -0700 (PDT) |
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)
;;http://xahlee.blogspot.com/2009/06/cygwin-tutorial-and-notes.html
;;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:
http://xah-forum.blogspot.com/2009/06/cygwinimagemagickemacsw32-causes-vista.html.
(setq exec-path (cons "C:\\cygwin\\bin" exec-path))
(setq w32shell-cygwin-bin "C:\\cygwin\\bin")
;;
;;http://www.emacswiki.org/emacs/CygWin
;;
;===
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
--
View this message in context:
http://www.nabble.com/Emacs-Cygwin-setup-in-Vista-help-tp25416488p25416488.html
Sent from the Emacs - Windows - Help mailing list archive at Nabble.com.
- [h-e-w] Emacs Cygwin setup in Vista help,
rpd <=