summaryrefslogtreecommitdiff
path: root/emacs/caml-font.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/caml-font.el')
-rw-r--r--emacs/caml-font.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/emacs/caml-font.el b/emacs/caml-font.el
index 678b2a5020..628a757e5f 100644
--- a/emacs/caml-font.el
+++ b/emacs/caml-font.el
@@ -2,8 +2,9 @@
(cond
((x-display-color-p)
+ (require 'font-lock)
(cond
- ((not (memq 'font-lock-type-face (face-list)))
+ ((not (boundp 'font-lock-type-face))
; make the necessary faces
(make-face 'Firebrick)
(set-face-foreground 'Firebrick "Firebrick")