I\'m using GNU/Linux distro (Arch, if that\'s relevant), Emacs v23.2.1, ESS v5.9 and AucTeX v11.86.
I want to setup AucTeX to recognize .Rnw fi
That's two different questions.
For the first one, my Debian R packages make sure that there is a soft link from the $RHOME/share/texmf/
directory into the TeX file system tree, e.g. as /usr/share/texmf/tex/latex/R
.
For the second question: dunno. I tend to run Sweave via a small shell script I crafted years ago even though I do all the editing in Emacs.
Edit, a few months later: Use ESS, rather than AucTeX. Then M-n s
(i.e Alt-n followed by s) runs the Sweave step and M-n P
runs the LaTeX compilation, with a call to Bibtex if needed.