Thanks, Douglas and Brian~

@Brian:

I try to put

; font-lock for noweb
(require 'noweb-font-lock-mode)

in my .emacs, but it still doesn't work on my laptop..

Regards

Tengfei

On Tue, Sep 14, 2010 at 12:33 PM, Brian Diggs <diggsb@ohsu.edu> wrote:

> On 9/13/2010 10:36 AM, Tengfei Yin wrote:
>
>> Hi dear all,
>>
>> In a R code chunk, when I use data frame 's $ accessor to subset it,  I
>> have
>> to put another $ in the comment, or the latex will treated as math mode?
>>
>>
>> df[df$X_STATE==6,'X_STATE']<- 'CA'  # $
>>
>>
>> My system:
>>
>> Ubuntu 10.04 64 bit, emacs 23.1.1, ess 5.11-1
>>
>> Thanks
>>
>> Tengfei
>>
>
> Tengfei,
>
> I had that problem too, and then I discovered noweb-font-lock-mode which
> fixed it.  I just added:
>
> ; font-lock for noweb
> (require 'noweb-font-lock-mode)
>
> to my init.el file.
>
> --
> Brian S. Diggs, PhD
> Senior Research Associate, Department of Surgery
> Oregon Health & Science University
>



-- 
Tengfei Yin
MCDB PhD student
1620 Howe Hall, 2274,
Iowa State University
Ames, IA,50011-2274
Homepage: www.tengfei.name

	[[alternative HTML version deleted]]

