Markus Jäntti
2002-Jul-17 11:27 UTC
[R] editing Sweave files in xemacs with ess (noweb), auctex and reftex
I am having some trouble getting reftex, in particular the bibtex related features, to work properly in xemacs when editing text in Sweave files. I have added (defun Rnw-mode () (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\\'" . Snw-mode)) in my .xemacs/init.el file, as suggested by the Sweave manual FAQ. While this most likely involves reftex/ess interaction, I wondered if someone on these lists is successfully using the combination AUCTeX LaTeX-mode/bib-cite/reftex in xemacs 21.4.8 and ess 5.1.20 (on a GNU/Linux Debian unstable system). Regards, Markus -- Markus Jantti Statistics Finland and University of Tampere markus.jantti at iki.fi http://www.iki.fi/~mjantti -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
A.J. Rossini
2002-Jul-17 12:51 UTC
[R] Re: editing Sweave files in xemacs with ess (noweb), auctex and reftex
I suspect noweb mode. It doesn't have a good memory when you flip between modes. Worse, it's not quite the right thing to do. There should be a (require 'ess-noweb) somewhere there, as per the suggestions in ess-site.el. Make sure that the noweb from ESS is loaded, rather than that from other sources. best, -tony>>>>> "markus" == Markus J?ntti <markus.jantti at iki.fi> writes:markus> I am having some trouble getting reftex, in particular the bibtex markus> related features, to work properly in xemacs when editing text in Sweave markus> files. I have added markus> (defun Rnw-mode () markus> (noweb-mode) markus> (if (fboundp 'R-mode) markus> (setq noweb-default-code-mode 'R-mode))) markus> (add-to-list 'auto-mode-alist '("\\.Rnw\\'" . Rnw-mode)) markus> (add-to-list 'auto-mode-alist '("\\.Snw\\'" . Snw-mode)) markus> in my .xemacs/init.el file, as suggested by the Sweave manual FAQ. markus> While this most likely involves reftex/ess interaction, I wondered markus> if someone on these lists is successfully using the combination markus> AUCTeX LaTeX-mode/bib-cite/reftex in xemacs 21.4.8 and ess 5.1.20 markus> (on a GNU/Linux Debian unstable system). markus> Regards, markus> Markus markus> -- markus> Markus Jantti markus> Statistics Finland and University of Tampere markus> markus.jantti at iki.fi markus> http://www.iki.fi/~mjantti markus> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- markus> ess-help mailing list -- To (un)subscribe, send markus> subscribe or unsubscribe markus> (in the "body", not the subject !) To: ess-help-request at stat.math.ethz.ch markus> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._ -- A.J. Rossini Rsrch. Asst. Prof. of Biostatistics U. of Washington Biostatistics rossini at u.washington.edu FHCRC/SCHARP/HIV Vaccine Trials Net rossini at scharp.org -------------- http://software.biostat.washington.edu/ ---------------- FHCRC: M: 206-667-7025 (fax=4812)|Voicemail is pretty sketchy/use Email UW: Th: 206-543-1044 (fax=3286)|Change last 4 digits of phone to FAX (my tuesday/wednesday/friday locations are completely unpredictable.) -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._