[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Differencing a major mode from its derived modes
From: |
Kai Grossjohann |
Subject: |
Re: Differencing a major mode from its derived modes |
Date: |
Tue, 08 Jun 2004 08:36:38 +0200 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) |
chem <chemtov@ifrance.com> writes:
> I would like to add allout mode only to text-mode. That is, I don't
> want allout mode to propagate to all the derived modes, like message
> mode, etc.
message-mode runs message-mode-hook and then text-mode-hook.
text-mode runs text-mode-hook only.
So you could toggle allout mode from both hooks. This would turn it
on, then off again, in message-mode, which is what you want.
Kai