[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.1 Modes and Hooks

AUCTeX supports a wide variety of derivatives and extensions of TeX. Besides plain TeX those are LaTeX, AMS-TeX, ConTeXt, Texinfo and docTeX. For each of them there is a separate major mode in AUCTeX and each major mode runs text-mode-hook, TeX-mode-hook as well as a hook special to the mode in this order. The following table provides an overview of the respective mode functions and hooks.

TypeMode functionHook
Plain TeXplain-TeX-modeplain-TeX-mode-hook
LaTeXLaTeX-modeLaTeX-mode-hook
AMS-TeXams-tex-modeAmS-TeX-mode-hook
ConTeXtConTeXt-modeConTeXt-mode-hook
TexinfoTexinfo-modeTexinfo-mode-hook
DocTeXdocTeX-modedocTeX-mode-hook

If you need to make a customization via a hook which is only relevant for one of the modes listed above, put it into the respective mode hook, if it is relevant for any AUCTeX mode, add it to TeX-mode-hook and if it is relevant for all text modes, append it to text-mode-hook.


This document was generated by Ralf Angeli on January 13, 2013 using texi2html 1.82.