(require 'font-lock)
(require 'paren)
(if (fboundp 'show-paren-mode) (show-paren-mode 1))
(defun ess-font-lock-rmh ()
"Set font-lock colors to Richard Heiberger's usual choice."
(interactive)
(if (featurep 'xemacs) nil
(set-foreground-color "Black")
(set-background-color "lightcyan"))
(set-face-background 'modeline "lightskyblue")
(set-face-foreground 'modeline "midnightblue")
(set-face-foreground 'font-lock-comment-face "Firebrick")
(set-face-foreground 'font-lock-function-name-face "Blue")
(set-face-foreground 'font-lock-keyword-face "Purple")
(set-face-foreground 'font-lock-constant-face "Brown")
(set-face-foreground 'font-lock-string-face "VioletRed")
(set-face-foreground 'font-lock-type-face "Sienna")
(set-face-foreground 'font-lock-variable-name-face "Black"))
(defun ess-font-lock-blue ()
"Set font-lock colors to Richard Heiberger's blue color scheme."
(interactive)
(if (featurep 'xemacs) nil
(set-foreground-color "Black")
(set-background-color "LightBlue"))
(set-face-foreground 'modeline "LightBlue")
(set-face-background 'modeline "DarkSlateBlue")
(set-face-foreground 'font-lock-comment-face "Firebrick")
(set-face-foreground 'font-lock-function-name-face "Blue")
(set-face-foreground 'font-lock-keyword-face "Purple")
(set-face-foreground 'font-lock-constant-face "Brown")
(set-face-foreground 'font-lock-string-face "VioletRed")
(set-face-foreground 'font-lock-type-face "Sienna")
(set-face-foreground 'font-lock-variable-name-face "Black"))
(defun ess-font-lock-wheat ()
"Set font-lock colors to Richard Heiberger's wheat color scheme."
(interactive)
(if (featurep 'xemacs) nil
(set-foreground-color "Black")
(set-background-color "Wheat"))
(set-face-foreground 'modeline "Wheat")
(set-face-background 'modeline "Sienna")
(set-face-foreground 'font-lock-comment-face "Firebrick")
(set-face-foreground 'font-lock-function-name-face "Blue")
(set-face-foreground 'font-lock-keyword-face "Purple")
(set-face-foreground 'font-lock-constant-face "Brown")
(set-face-foreground 'font-lock-string-face "VioletRed")
(set-face-foreground 'font-lock-type-face "Sienna")
(set-face-foreground 'font-lock-variable-name-face "Black"))
(defun ess-font-lock-bw ()
"Set font-lock colors to Richard Heiberger's black and white color scheme."
(interactive)
(if (featurep 'xemacs) nil
(set-foreground-color "Black")
(set-background-color "white"))
(set-face-foreground 'modeline "gray10")
(set-face-background 'modeline "gray90")
(modify-face 'modeline "gray10" "gray90" nil nil t nil )
(modify-face 'font-lock-comment-face "black" "white" nil nil t nil )
(modify-face 'font-lock-function-name-face "black" "white" nil t nil nil )
(modify-face 'font-lock-keyword-face "black" "white" nil nil nil t )
(modify-face 'font-lock-constant-face "black" "white" nil t nil nil )
(modify-face 'font-lock-string-face "black" "white" nil nil t t )
(modify-face 'font-lock-type-face "black" "white" nil t t nil )
(modify-face 'font-lock-variable-name-face "black" "white" nil nil nil nil )
(modify-face 'font-lock-builtin-face "black" "white" nil t nil nil )
(modify-face 'font-lock-warning-face "black" "white" nil t nil nil )
(modify-face 'show-paren-match-face "gray20" "gray80" nil t nil nil )
(modify-face 'show-paren-mismatch-face "white" "gray40" nil t t nil ))
(defun ess-font-lock-db ()
"Set font-lock colors (leave fore-/back-ground alone) courtesy David Brahm <[email protected]>"
(interactive)
(set-face-foreground 'font-lock-comment-face "Firebrick")
(set-face-foreground 'font-lock-string-face "SeaGreen")
(set-face-foreground 'font-lock-keyword-face "MediumBlue")
(set-face-foreground 'font-lock-function-name-face "VioletRed")
(set-face-foreground 'font-lock-variable-name-face "Blue")
(set-face-foreground 'font-lock-type-face "Goldenrod")
(set-face-foreground 'font-lock-constant-face "Magenta")
)
(provide 'ess-font-lock)