[ESS] font lock
Sparapani, Rodney
rsparapa at mcw.edu
Tue Apr 15 18:52:38 CEST 2014
> Is it possible to use a special face for the builtin functions in R,
> like "read.csv" or "glm"?
> I have the following in my .emacs, but they do not do anything. Only R
> keywords like "for" , "in" , strings and
> comments are treated properly.
> Also, library(mypack) will treat library with the constant face, but
> load("dat.Rdata") does not treat
> load with any face.
>
> (custom-set-faces
Hi Stephen:
That's because you are not doing it right ;o) The variables you want
to customize are ess-R-font-lock-keywords and inferior-R-font-lock-keywords.
But, you would probably want to make those changes via the menu. To
see an example, check out
http://blog.revolutionanalytics.com/2014/03/emacs-ess-and-r-for-zombies.html
Rodney
More information about the ESS-help
mailing list