|
From: | Lars Brange |
Subject: | Re: C++ mode. |
Date: | Tue, 27 May 2003 07:18:02 GMT |
(defun lars-setup-color-faces ()
(custom-set-faces
'(font-lock-comment-face
((t (:foreground "darkblue" :bold nil))) t)
'(font-lock-string-face
((t (:foreground "darkgreen"))) t)
'(font-lock-keyword-face
((t (:foreground "red" :bold nil))) t)
'(font-lock-builtin-face
((t (:foreground "black" :bold nil))) t)
'(font-lock-function-name-face
((t (:foreground "black" :bold t))) t)
'(font-lock-variable-name-face
((t (:foreground "black"))) t)
'(font-lock-type-face
((t (:foreground "red" :bold nil))) t)
'(font-lock-constant-face
((t (:foreground "black" :bold t))) t)
'(font-lock-warning-face
((t (:foreground "black" :bold t))) t)
'(font-lock-reference-face
((t (:foreground "green" :bold t))) t)
'(font-lock-doc-string-face
((t (:foreground "blue"))) t)
'(highlight
((t (:foreground "cyan" :background "darkblue"))) t)
'(zmacs-region
((t (:foreground "white" :background "darkblue"))) t)
'(isearch
((t (:foreground "white" :background "darkblue"))) t)
'(irchat-my-nick-highlight
((t (:foreground "yellow" :background "blue" :bold t))) t)
'(dired-face-permissions
((t (:foreground "white" :background "blue"))) t)
'(gnus-cite-face-1
((t (:foreground "green"))) t)
'(gnus-cite-face-2
((t (:foreground "cyan"))) t)
'(gnus-cite-face-3
((t (:foreground "pink"))) t)
'(gnus-cite-face-4
((t (:foreground "red"))) t)))
(lars-setup-color-faces)
(setq font-lock-maximum-decoration t)
(global-font-lock-mode t)
Lars
K Hollingworth wrote:
According to emacs I haveGNU Emacs 20.7.1 (i386-redhat-linux-gnu, X toolkit) of Fri Mar 16 2001 on
porky.devel.redhat.comI would like to customise c++ mode so that lines starting std::cerr are
marked in a different red as most of them are for debugging and it
would be nice to be able to spot them easily. Is this possible? It
would be acceptable to mark everything in the std namespace in red.I'm a bit of a newbie with emacs so apologies as I don't know all the
terminology yet!--
Kirsty Hollingworth <kh25@york.ac.uk>
Department of Biology, University of York, York, YO10 5YW
[Prev in Thread] | Current Thread | [Next in Thread] |