[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[h-e-w] Unable to launch cygwin bash (M-x shell) in win 7 64 bit
From: |
Sivaram Neelakantan |
Subject: |
[h-e-w] Unable to launch cygwin bash (M-x shell) in win 7 64 bit |
Date: |
Mon, 30 Jul 2012 22:43:20 +0530 |
User-agent: |
Gnus/5.110019 (No Gnus v0.19) Emacs/24.1 (windows-nt) |
I've run into this problem and I don't know where to start. I got a
new laptop and went about installing all the usual bits of software,
Emacs and Cygwin. Things mostly work as advertised....however when I
do M-x shell, I get
let: Symbol's value as variable is void: font-lock-defaults-alist
Error in post-command-hook (global-font-lock-mode-check-buffers):
(void-variable font-lock-defaults-alist)
and that's it. I haven't changed anything that I had on my old XP
laptop. The weird thing is, M-! command to call different cygwin
commands work; the moment I launch the shell within Emacs I get the
above errors.
--8<---------------cut here---------------start------------->8---
and my cygwin configuration in my .Emacs is
(setq exec-path (cons "C:/gnu/bin/" exec-path))
(setq exec-path (cons "C:/cygwin/usr/bin" (cons "C:/cygwin/bin" exec-path)))
(setq exec-path (cons "C:/MiKTeX2.9/miktex/bin" exec-path))
(setenv "PATH" (concat
"C:\\MiKTeX2.9\\miktex\\bin;C:\\cygwin\\bin;C:\\cygwin\\usr\\bin;C:\\gnu\\bin\\;"
(getenv "PATH")))
;; NT-emacs assumes a Windows command shell, which you change
;; here.
;;
(setq process-coding-system-alist '(("bash" . undecided-unix)))
(setq w32-quote-process-args ?\")
(setq shell-file-name "/usr/bin/bash")
;;(setq shell-file-name "C:/cygwin/usr/bin/bash")
(setenv "SHELL" shell-file-name)
(setq explicit-shell-file-name shell-file-name)
;; This removes unsightly ^M characters that would otherwise
;; appear in the output.
;;
(add-hook 'comint-output-filter-functions
'comint-strip-ctrl-m)
--8<---------------cut here---------------end--------------->8---
sivaram
--
- [h-e-w] Unable to launch cygwin bash (M-x shell) in win 7 64 bit,
Sivaram Neelakantan <=