comparison lisp/font-lock.el @ 25331:d0672c9ba98a

(global-font-lock-mode): Autoload. Add :initialize.
author Dave Love <fx@gnu.org>
date Thu, 19 Aug 1999 18:31:24 +0000
parents f9b3511a51c4
children 359d6e7a6ffc
comparison
equal deleted inserted replaced
25330:6ac0cc90d397 25331:d0672c9ba98a
844 (setq global-font-lock-mode on-p))) 844 (setq global-font-lock-mode on-p)))
845 845
846 ;; This variable was originally a `defvar' to keep track of 846 ;; This variable was originally a `defvar' to keep track of
847 ;; whether Global Font Lock mode was turned on or not. As a `defcustom' with 847 ;; whether Global Font Lock mode was turned on or not. As a `defcustom' with
848 ;; special `:set' and `:require' forms, we can provide custom mode control. 848 ;; special `:set' and `:require' forms, we can provide custom mode control.
849 ;;;###autoload
849 (defcustom global-font-lock-mode nil 850 (defcustom global-font-lock-mode nil
850 "Toggle Global Font Lock mode. 851 "Toggle Global Font Lock mode.
851 When Global Font Lock mode is enabled, Font Lock mode is automagically 852 When Global Font Lock mode is enabled, Font Lock mode is automagically
852 turned on in a buffer if its major mode is one of `font-lock-global-modes'. 853 turned on in a buffer if its major mode is one of `font-lock-global-modes'.
853 Setting this variable directly does not take effect; 854 Setting this variable directly does not take effect;
854 use either \\[customize] or the function `global-font-lock-mode'." 855 use either \\[customize] or the function `global-font-lock-mode'."
855 :set (lambda (symbol value) 856 :set (lambda (symbol value)
856 (global-font-lock-mode (or value 0))) 857 (global-font-lock-mode (or value 0)))
858 :initialize 'custom-initialize-default
857 :type 'boolean 859 :type 'boolean
858 :group 'font-lock 860 :group 'font-lock
859 :require 'font-lock) 861 :require 'font-lock)
860 862
861 (defcustom font-lock-global-modes t 863 (defcustom font-lock-global-modes t