---
Davin Pearson http://davin.50webs.com
(add-hook 'font-lock-mode-hook 'd-coding-prefs-font-lock-mode-hook 'APPEND)
(defun d-coding-prefs-font-lock-mode-hook ()
(if (or (eq major-mode 'c-mode)
(eq major-mode 'c++-mode)
(eq major-mode 'java-mode))
(d-font-lock-add-end
'(
("\\<\\(global[a-zA-Z0-9_]*\\)" 0 global-face nil)
("\\<\\(GLOBAL[a-zA-Z0-9_]*\\)" 0 global-face nil)
("\\<\\(local[a-zA-Z0-9_]*\\)" 0 local-face nil)
("\\<\\(LOCAL[a-zA-Z0-9_]*\\)" 0 local-face nil)
("\\<\\(prop[a-zA-Z0-9_]*\\)" 0 prop-face nil)
("\\<\\(PROP[a-zA-Z0-9_]*\\)" 0 prop-face nil)
)))
(if (eq major-mode 'emacs-lisp-mode)
(d-font-lock-add-end
'(
("\\<\\(global[-a-zA-Z0-9_+]*\\)" 0 global-face nil)
("\\<\\(\\*[-+a-zA-Z0-9_<>!]+\\*\\)" 0 *global-face* nil)
("\\<\\(GLOBAL[-a-zA-Z0-9_+]*\\)" 0 global-face nil)
("\\<\\(local[-a-zA-Z0-9_+]*\\)" 0 local-face nil)
("\\<\\(LOCAL[-a-zA-Z0-9_+]*\\)" 0 local-face nil)
("\\<\\(prop[-a-zA-Z0-9_+]*\\)" 0 prop-face nil)
("\\<\\(PROP[-a-zA-Z0-9_+]*\\)" 0 prop-face nil)
)
)
)
(if (or (eq major-mode 'lisp++-mode)
(eq major-mode 'emacs-lisp-mode))
(d-font-lock-add-end
'(
("[a-z_]*_design_pattern\\>" 0 d-design-pattern-face t))))
)
(require 'd-make-face)
(defun d-flock-coding-preferences ()
(d-make-face global-face bg-colour "#008800" bold)
(d-make-face *global-face* bg-colour "#004400" bold)
(d-make-face local-face bg-colour "#f90" bold)
(d-make-face prop-face bg-colour "#f90" bold)
(d-make-face d-design-pattern-face "#f90" "#000" bold)
)
(d-flock-coding-preferences)
(provide 'd-flock-coding-preferences)