help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to apply a minor mode to all buffers


From: Stefan Monnier
Subject: Re: How to apply a minor mode to all buffers
Date: Mon, 22 Jan 2007 11:59:56 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux)

> I think it would be useful is Emacs had some more general hooks than the
> ones it has a present, for example:- progmodes-hook - A hook ran whenever
> a programming language mode starts plain-text-modes-hook - A hook ran by
> text-mode, paragraph-indent-text-mode etc formatted-text-modes-hook -
> A hook ran by tex-mode, nroff-mode, sgml-mode etc

There is text-mode-hook.  As for prog-mode-hook, I agree 100%.


        Stefan


PS: Of course, tex-mode should run both text-mode-hook and prog-mode-hook.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]