aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/font-lock.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/font-lock.el b/lisp/font-lock.el
index 6dac89577ba..f0257182eef 100644
--- a/lisp/font-lock.el
+++ b/lisp/font-lock.el
@@ -714,7 +714,7 @@ buffer local value for `font-lock-defaults', via its mode hook."
714(defun turn-on-font-lock () 714(defun turn-on-font-lock ()
715 "Turn on Font Lock mode conditionally. 715 "Turn on Font Lock mode conditionally.
716Turn on only if the terminal can display it." 716Turn on only if the terminal can display it."
717 (when (and (not font-lock-mode) window-system) 717 (when (and (not font-lock-mode) (or window-system (tty-display-color-p)))
718 (font-lock-mode))) 718 (font-lock-mode)))
719 719
720;;;###autoload 720;;;###autoload