Enriched mode is a minor mode for editing formatted text files in a WYSIWYG (What You See Is What You Get) fashion. When Enriched mode is enabled, you can apply various formatting properties to the text in the buffer, such as fonts and colors; upon saving the buffer, those properties are saved together with the text, using the MIME ‘
text/enriched’ file format.
Enriched mode is typically used with Text mode (see Text Mode). It is not compatible with Font Lock mode, which is used by many major modes, including most programming language modes, for syntax highlighting (see Font Lock). Unlike Enriched mode, Font Lock mode assigns text properties automatically, based on the current buffer contents; those properties are not saved to disk.
enriched.txt in Emacs’s
data-directory serves as an example of the features of Enriched mode.
|• Enriched Mode||Entering and exiting Enriched mode.|
|• Hard and Soft Newlines||There are two different kinds of newlines.|
|• Editing Format Info||How to edit text properties.|
|• Enriched Faces||Bold, italic, underline, etc.|
|• Enriched Indentation||Changing the left and right margins.|
|• Enriched Justification||Centering, setting text flush with the left or right margin, etc.|
|• Enriched Properties||The “special text properties" submenu.|