Next: , Previous: Hooks, Up: Modes


23.2 Major Modes

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.


Xah Signet