[ESS] Syntax highlighting with R

Stephen Eglen S.J.Eglen at damtp.cam.ac.uk
Sat Dec 6 22:05:53 CET 2008


hi Graham,

> I suspect this is much an emacs question as an ESS question, but could
> someone help me with what I need to do to get syntax highlighting in
> ESS/R
> 
> At the moment I have this in my .emacs file
> 
> (global-font-lock-mode 1)                    ; for all buffers
> '(inferior-ess-R-font-lock-keywords)
> '(ess-R-mode-font-lock-keywords)
> '(show-paren-mode t)

Those last three lines starting with ' do not need to be in .emacs; the
' just means to quote the following list, so that code is not evaluated
by emacs. 

Do you have ESS loaded?  (e.g. somewhere else in your .emacs you load
'ess-site.el' somehow.)  Does M-x R get you an R session?

Stephen




More information about the ESS-help mailing list