GNU Info

Info Node: (elisp)Modes

(elisp)Modes


Next: Documentation Prev: Keymaps Up: Top
Enter node , (file) or (file)node

Major and Minor Modes
*********************

   A "mode" is a set of definitions that customize Emacs and can be
turned on and off while you edit.  There are two varieties of modes:
"major modes", which are mutually exclusive and used for editing
particular kinds of text, and "minor modes", which provide features
that users can enable individually.

   This chapter describes how to write both major and minor modes, how
to indicate them in the mode line, and how they run hooks supplied by
the user.  For related topics such as keymaps and syntax tables, see
Note: Keymaps, and Note: Syntax Tables.

Major Modes
Defining major modes.
Minor Modes
Defining minor modes.
Mode Line Format
Customizing the text that appears in the mode line.
Imenu
How a mode can provide a menu
of definitions in the buffer.
Font Lock Mode
How modes can highlight text according to syntax.
Hooks
How to use hooks; how to write code that provides hooks.

automatically generated by info2www version 1.2.2.9