[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Multiple Major Modes
From: |
Richard Riley |
Subject: |
Re: Multiple Major Modes |
Date: |
Mon, 02 Nov 2009 15:28:04 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Lennart Borgman <lennart.borgman@gmail.com> writes:
> On Mon, Nov 2, 2009 at 3:01 PM, Richard Riley <rileyrgdev@gmail.com> wrote:
>> Dave Love <fx@domain.invalid> writes:
>>
>>> Nordlöw <per.nordlow@gmail.com> writes:
>>>
>>>> Does anyone though of an extension the enables a major-mode to exist
>>>> only within a part of buffer along with another major-mode. Part is
>>>> preferrably delimited by some magic strings.
>>>
>>> I think you want more flexibility for delimiting mode chunks in general.
>>>
>>> <URL:http://www.loveshack.ukfsn.org/emacs/multi-mode.el> implements
>>> roughly what we intended by the Emacs TODO item on the topic many years
>>> ago (if it's still there).
>>>
>>> I'm rather baffled by this nxhtml thing referred to, and its complexity.
>>> It claims to be trying to solve a problem that the indirect buffer
>>> approach doesn't have. Can someone explain why?
>>>
>>> Doing this sort of thing properly really needs support from Emacs, which
>>> was originally meant to be added as necessary.
>>>
>>
>> I just tried multi-mode. Very fast and clean. Can it also fontify in the
>> php sections or am I missing something?
>
> Yes, it does. (It is just a bug at startup of it, press some key.)
>
Yes, it also depends if the first line of the php is on the same line as the
<?php tag or not.
flyspell is causing me some grief with it too and am trying to narrow
down why.