spinuvit at gmail.com
Thu Jun 7 08:51:57 CEST 2012
Auctex integration is already there for Rnw, as far as I can see. You
can activate it from the noweb/Sweave menu.
>> Rasmus <rasmus at gmx.us>
>> on Wed, 6 Jun 2012 22:14:44 +0100 wrote:
> Brett Presnell <presnell at stat.ufl.edu> writes:
>> Code "chunks" in org-mode (delimited by #+BEGIN_SRC and #+END_SRC) can
>> be edited in a separate emacs window by typing C-c '. This window is
>> opened in the appropriate mode (ESS for R code) and saved back to the
>> document by typing C-c ' again.
> I love Org-mode, but I prefer the behavior of the ESS noweb mode. It
> would still be convenient for long code chucks, though. I guess it
> should be somewhat easy to write up a narrow to chuck function.
In noweb mode there is M-n n to narrow to chunks. It should eliminated
the need for C-c ' altogether.
>> I'm not sure where the implementation would have to take place for Rnw
>> or knitr files (ESS? AUCTeX? Both?), but something like this would
>> avoid mode switching between AUCTeX and ESS, which has never worked
>> properly for me (maybe because I find it incredibly cumbersome to avoid
>> all use of dollar signs in my R code). This may seem like a minor
>> thing, but these mode switching problems often make editing Rnw files
>> into a fairly painful experience for me, and I do a lot of it.
Yes, resetting modes every time you switch a chunk is the main (if not
the only) reason for a rewrite.
More information about the ESS-help