editing Rnw in Emacs, gets confused if in math mode or not

Posted by stevejb on Stack Overflow See other posts from Stack Overflow or by stevejb
Published on 2010-04-17T17:27:34Z Indexed on 2010/04/17 17:33 UTC
Read the original article Hit count: 301

Filed under:
|
|
|

When editing .Rnw files with emacs, sometimes it gets confused as to if I am in math mode or not. Then, the syntax highlighting gets messed up, and C-f-i inserts \textit{} and \mathit{} opposite to how it normally should. Is seems like there is some bool storing the state of math mode or not, and it gets inadvertently flipped. Is there a way I can manually flip it back?

© Stack Overflow or respective owner

Related posts about r

    Related posts about rstats