1742 |
* Search-based Fontification:: |
* Search-based Fontification:: |
1743 |
* Other Font Lock Variables:: |
* Other Font Lock Variables:: |
1744 |
* Levels of Font Lock:: |
* Levels of Font Lock:: |
1745 |
|
* Precalculated Fontification:: |
1746 |
* Faces for Font Lock:: |
* Faces for Font Lock:: |
1747 |
* Syntactic Font Lock:: |
* Syntactic Font Lock:: |
1748 |
@end menu |
@end menu |
2085 |
wherever they appear. |
wherever they appear. |
2086 |
@end itemize |
@end itemize |
2087 |
|
|
2088 |
|
@node Precalculated Fontification |
2089 |
|
@subsection Precalculated Fontification |
2090 |
|
|
2091 |
|
In addition to using @code{font-lock-defaults} for search-based |
2092 |
|
fontification, you may use the special character property |
2093 |
|
@code{font-lock-face} (@pxref{Special Properties}). This property |
2094 |
|
acts just like the explicit @code{face} property, but its activation |
2095 |
|
is toggled when the user calls @kbd{M-x font-lock-mode}. Using |
2096 |
|
@code{font-lock-face} is especially conveninent for special modes |
2097 |
|
which construct their text programmatically, such as |
2098 |
|
@code{list-buffers} and @code{occur}. |
2099 |
|
|
2100 |
@node Faces for Font Lock |
@node Faces for Font Lock |
2101 |
@subsection Faces for Font Lock |
@subsection Faces for Font Lock |
2102 |
|
|