From c0a66895bf685ebbf36614b89ca2b187e3f4e351 Mon Sep 17 00:00:00 2001 From: Jackson Ray Hamilton Date: Sun, 17 May 2015 17:25:24 -0700 Subject: [PATCH] Only set defaults when the mode is enabled. --- context-coloring.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/context-coloring.el b/context-coloring.el index 3a05bc2af..bf1d53399 100644 --- a/context-coloring.el +++ b/context-coloring.el @@ -193,7 +193,6 @@ the END point (exclusive) with the face corresponding to LEVEL." (or max (point-max))) ;; TODO: Make configurable at the dispatch level. (when (eq major-mode 'emacs-lisp-mode) - (font-lock-set-defaults) (font-lock-fontify-keywords-region (or min (point-min)) (or max (point-max)))))))) @@ -1432,6 +1431,9 @@ elisp tracks, and asynchronously for shell command tracks." (font-lock-mode 0) (jit-lock-mode nil) + ;; ...but we do use font-lock functions here. + (font-lock-set-defaults) + ;; Safely change the valye of this function as necessary. (make-local-variable 'font-lock-syntactic-face-function) -- 2.39.2