Commit a33209e8 authored by Dave Love's avatar Dave Love

(turn-on-font-lock): Use tty-display-color-p.

parent e7f07c2c
......@@ -714,7 +714,7 @@ buffer local value for `font-lock-defaults', via its mode hook."
(defun turn-on-font-lock ()
"Turn on Font Lock mode conditionally.
Turn on only if the terminal can display it."
(when (and (not font-lock-mode) window-system)
(when (and (not font-lock-mode) (or window-system (tty-display-color-p)))
(font-lock-mode)))
;;;###autoload
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment