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:
parent
e7f07c2ccf
commit
a33209e8ef
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue