Font Lock mode is a minor mode, always local to a particular buffer, which assigns faces to the text in the buffer.
Font Lock mode is a minor mode, always local to a particular buffer, which assigns faces to the text in the buffer.
Each buffer's major mode tells Font Lock mode which text to fontify; for instance, programming language modes fontify syntactically relevant constructs like comments, strings, and function names.
Font Lock mode is enabled by default. To toggle it in the current buffer, type M-xfont-lock-mode
. A positive numeric argument unconditionally enables Font Lock mode, and a negative or zero argument disables it.
Type M-xglobal-font-lock-mode
to toggle Font Lock mode in all buffers. To impose this setting for future Emacs sessions, customize the variable global-font-lock-mode (see Easy Customization), or add the following line to your init file:
(global-font-lock-mode 0)