Bond, Stephen <Stephen.Bond <at> cibc.com>
2014-04-15 16:04:52 GMT
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 was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(default ((t (:stipple nil :background "BlanchedAlmond" :foreground "SaddleBrown" :inverse-video
nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 98
:width normal :family "outline-courier new"))))
'(font-lock-builtin-face ((t (:foreground "red"))))
'(font-lock-comment-face ((nil (:background "light blue" :foreground "blue" :family "italic"))))
'(font-lock-function-name-face ((t (:background "white" :foreground "blue"))))
'(font-lock-keyword-face ((t (:background "light grey" :foreground "dark green" :weight bold))))
'(font-lock-string-face ((((class color) (min-colors 16) (background light)) (:foreground
"DarkGreen" :weight semi-bold))))
'(font-lock-variable-name-face ((((class color) (min-colors 88) (background light)) (:foreground "brown")))))
[[alternative HTML version deleted]]
ESS-help <at> r-project.org mailing list