[ESS] Code indentation inside an Sweave chunk
Stephen Eglen
S.J.Eglen at damtp.cam.ac.uk
Tue Nov 28 11:42:52 CET 2006
For the list:
>
> (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))
>
> (setq reftex-file-extensions
> '(("Snw" "Rnw" "nw" "tex" ".tex" ".ltx") ("bib" ".bib")))
> (setq TeX-file-extensions
> '("Snw" "Rnw" "nw" "tex" "sty" "cls" "ltx" "texi" "texinfo"))
>
this code is not needed in your .emacs if you are using a recent
version of ESS -- it is now include in ESS.
Stephen
More information about the ESS-help
mailing list