Commit 443de9cd authored by Dave Love's avatar Dave Love
Browse files

(global-font-lock-mode): Autoload. Add :initialize.

parent 720712eb
......@@ -846,6 +846,7 @@ turned on in a buffer if its major mode is one of `font-lock-global-modes'."
;; This variable was originally a `defvar' to keep track of
;; whether Global Font Lock mode was turned on or not. As a `defcustom' with
;; special `:set' and `:require' forms, we can provide custom mode control.
;;;###autoload
(defcustom global-font-lock-mode nil
"Toggle Global Font Lock mode.
When Global Font Lock mode is enabled, Font Lock mode is automagically
......@@ -854,6 +855,7 @@ Setting this variable directly does not take effect;
use either \\[customize] or the function `global-font-lock-mode'."
:set (lambda (symbol value)
(global-font-lock-mode (or value 0)))
:initialize 'custom-initialize-default
:type 'boolean
:group 'font-lock
:require 'font-lock)
......
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