[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

29. Lazy Demand-Driven Fontification

The purpose of this library is to make visiting buffers in font-lock-mode faster by making fontification demand-driven and stealthy. Fontification only occurs when, and where, necessary.

See also the fast-lock and lazy-shot packages. (But don’t use them at the same time as lazy-lock!)

To use this package, add the following to your initialization file:

 
  (setq font-lock-support-mode 'lazy-lock-mode)

Start up a new XEmacs and use font-lock as usual (except that you can use the so-called "gaudier" fontification regexps on big files without frustration).

In a buffer (which has font-lock-mode enabled) which is at least lazy-lock-minimum-size characters long, only the visible portion of the buffer will be fontified. Motion around the buffer will fontify those visible portions that were not previous fontified.

If stealth fontification is enabled, fontification will occur in invisible parts of the buffer after lazy-lock-stealth-time seconds of idle time.

To configure this package, type:

 
  M-x customize-group RET lazy-lock RET

[ << ] [ >> ]           [Top] [Contents] [Index] [ ? ]

This document was generated by Aidan Kehoe on December 27, 2016 using texi2html 1.82.