mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
(turn-on-font-lock): Test window-system.
This commit is contained in:
parent
d1e7492185
commit
2346238d0a
1 changed files with 3 additions and 2 deletions
|
|
@ -411,8 +411,9 @@ syntactic change on other lines, you can use \\[font-lock-fontify-window]."
|
|||
|
||||
;;;###autoload
|
||||
(defun turn-on-font-lock ()
|
||||
"Unconditionally turn on Font Lock mode."
|
||||
(font-lock-mode 1))
|
||||
"Turn on Font Lock mode, if the terminal can display it."
|
||||
(if window-system
|
||||
(font-lock-mode 1)))
|
||||
|
||||
;;;###autoload
|
||||
(defun font-lock-fontify-buffer ()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue