On Wed, Feb 09 2011, Stefan Monnier wrote: >> This allows to add font-lock keyword to prog-mode directly, so every other >> children mode will use them. > > Making inheritance work with font-lock keywords is a good idea, but this > is the wrong way to do it. The right way is to take advantage of the > way inheritance works. E.g. use a variable which modes would > *modify* rather than just set. E.g. somehow convince all modes to use > the equivalent of font-lock-add-keywords. I may not have enough knowledge of modes and font-lock to understand the way you describe. Would you mind ellaboring a bit so I can maybe work on that? :) -- Julien Danjou ❱ http://julien.danjou.info