emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lispref/modes.texi


From: Colin Walters
Subject: [Emacs-diffs] Changes to emacs/lispref/modes.texi
Date: Sat, 08 Jun 2002 20:43:10 -0400

Index: emacs/lispref/modes.texi
diff -c emacs/lispref/modes.texi:1.48 emacs/lispref/modes.texi:1.49
*** emacs/lispref/modes.texi:1.48       Sat Jun  8 16:26:37 2002
--- emacs/lispref/modes.texi    Sat Jun  8 20:43:09 2002
***************
*** 2097,2102 ****
--- 2097,2114 ----
  which construct their text programmatically, such as
  @code{list-buffers} and @code{occur}.
  
+ If your mode does not use any of the other machinery of Font Lock
+ (i.e. it only uses the @code{font-lock-face} property), you can tell
+ Emacs not to load all of font-lock.el (unless it's already loaded), by
+ setting the variable @code{font-lock-core-only} to non-nil as part of
+ the @code{font-lock-defaults} settings.  Here is the canonical way to
+ do this:
+ 
+ @example
+ (set (make-local-variable 'font-lock-defaults)
+      '(nil t nil nil nil (font-lock-core-only . t)))
+ @end example
+ 
  @node Faces for Font Lock
  @subsection Faces for Font Lock
  



reply via email to

[Prev in Thread] Current Thread [Next in Thread]