[ < ] | [ > ] | [ << ] | [Plus haut] | [ >> ] | [Top] | [Table des matières] | [Index] | [ ? ] |
Major modes specialize Emacs for editing particular kinds of text. Each buffer has only one major mode at a time. For each major mode there is a function to switch to that mode in the current buffer; its name should end in ‘-mode’. These functions work by setting buffer-local variable bindings and other data associated with the buffer, such as a local keymap. The effect lasts until you switch to another major mode in the same buffer.
23.2.1 Major Mode Basics | ||
23.2.2 Major Mode Conventions | Coding conventions for keymaps, etc. | |
23.2.3 How Emacs Chooses a Major Mode | How Emacs chooses the major mode automatically. | |
23.2.4 Getting Help about a Major Mode | Finding out how to use a mode. | |
23.2.5 Defining Derived Modes | Defining a new major mode based on another major mode. | |
23.2.6 Generic Modes | Defining a simple major mode that supports comment syntax and Font Lock mode. | |
23.2.7 Mode Hooks | Hooks run at the end of major mode functions. | |
23.2.8 Major Mode Examples | Text mode and Lisp modes. |
Ce document a été généré par Eric Reinbold le 13 Octobre 2007 en utilisant texi2html 1.78.