[ESS-bugs] ess-5.2.0 with NT based cygwin
Barrett E Kirwan
kirwan at MIT.EDU
Fri May 14 22:18:44 CEST 2004
Cheers!
-Barrett
Quoting "Richard M. Heiberger" <rmh at temple.edu>:
> If it is missing the shell information, then you need all the following
> (which are in the sample site-start.el that you found in the ESS archives).
> The key is that the COMSPEC and SHELL need to be defined before ess-site is
> run.
>
>
> ;;; This file requires no changes to run in a different path.
> ;;; When it is installed in the ../emacs/emacs-21.0.104/site-lisp/
> ;;; directory, it will know where it is. For example, if we are in
> ;;; "c:/emacs/emacs-21.0.104/site-lisp/site-start.el" then
> ;;; `where' is "c:/"
>
> (make-local-variable 'where)
> (setq where (file-name-directory
> (file-truename (concat load-file-name "/../../.."))))
>
> ;;; shell on win95 to bash
> ;;; shell on windows to bash
> (make-local-variable 'cygwin)
> (make-local-variable 'cygwin-bin)
> (make-local-variable 'cygwin-bash)
> (setq cygwin (concat where "cygwin"))
> (setq cygwin-bin (concat cygwin "/bin"))
> (setq cygwin-bash (concat cygwin-bin "/bash.exe"))
> (setenv "COMSPEC" cygwin-bash)
> (setenv "SHELL" cygwin-bash)
> (setq shell-file-name cygwin-bash)
>
> ;;; ess-site must appear after the shell variables
> (setq ess-sas-edit-keys-toggle nil) ;;; turn on automatic indentation
> (load-library "ess-site") ;;; ESS for S-mode and SAS-mode
>
More information about the ESS-bugs
mailing list