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

[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: Fri, 11 Jun 2004 15:00:58 +0200
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux)

chem <chemtov@ifrance.com> writes:

> I did it already, but there are a lot of modes deriving from text mode,
> and I don't want to modify them all.  That's why I wanted a general
> way to specify that a particular hook should only apply to the parent
> mode, and not to its children.

I forget whether testing the variable major-mode was already
mentioned.  You could write a function that checks (eq major-mode
'text-mode), and only if this is true, then activate allout mode.

Kai






reply via email to

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