Hallo!
Trying to configure Xemacs to work with .snw files on windows 2000. Tried to do it how it is described in the FAQ for Sweaves.
When starting xemacs with and Snw file *ESS* buffer contains hundrets of lines and the few last ones.
[...]
And no syntax highlighting in the *.Snw buffer ??
Hello,
on Linux it works out of the box, but on Windows I had similar problems (Xemacs-21.4.13 and Win2k). First, you must be sure, that .xemacs is in your home directory. I don't use the standards of win2k and set the environment variable HOME=D:\
My simple .xemacs/init.el file looks as follows.
Thomas P.
;; Auctex (require 'tex-site)
;; ESS (require 'ess-site) (setq-default inferior-R-program-name "F:/src/R-1.8.1/bin/Rterm")
;; Sweave
(defun Rnw-mode ()
(require 'ess-noweb)
(noweb-mode)
(if (fboundp 'R-mode)
(setq noweb-default-code-mode 'R-mode)))(add-to-list 'auto-mode-alist '("\\.Rnw\\'" . Rnw-mode))
(add-to-list 'auto-mode-alist '("\\.Snw\\'" . Rnw-mode))
(add-to-list 'auto-mode-alist '("\\.Stex\\'" . tex-mode))
(add-to-list 'auto-mode-alist '("\\.Rtex\\'" . tex-mode))(setq reftex-file-extensions
'(("Snw" "Rnw" "nw" "tex" ".tex" ".ltx") ("bib" ".bib")))
(setq tex-file-extensions
'("Snw" "Rnw" "nw" "tex" "Stex" "sty" "cls" "ltx" "texi" "texinfo"))______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
