1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-22 07:51:17 -08:00

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

This commit is contained in:
Dave Love 1999-07-23 16:44:54 +00:00
parent e7f07c2ccf
commit a33209e8ef

View file

@ -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