emacs-devel
[Top][All Lists]
Advanced

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

Re: org-mode and mode hooks.


From: Stefan Monnier
Subject: Re: org-mode and mode hooks.
Date: Wed, 01 Jun 2005 17:24:46 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> Maybe we should label each of these things by the name of the minor
> mode.  That way, we could tell which of them to discard.  Or we could
> give each one a flag saying whether to preserve it when changing the
> major mode.

> Would that solve the problem?

Yes, I think a real solution is to define a new way to add keywords.
It could look like a new var minor-mode-font-lock-keywords-alist modelled
after minor-mode-map-alist.  I think the important part is that the API
should be declarative rather than imperative, so that at any point in time
we can reconstruct font-lock-keywords from font-lock-defaults and whatever
other keyword-sources there can be (such as
minor-mode-font-lock-keywords-alist).


        Stefan




reply via email to

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