[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Multiple Major Modes
From: |
Lennart Borgman |
Subject: |
Re: Multiple Major Modes |
Date: |
Mon, 2 Nov 2009 00:14:40 +0100 |
On Fri, Oct 30, 2009 at 4:28 AM, Joseph Brenner <doom@kzsu.stanford.edu> wrote:
>
> Lennart Borgman <lennart.borgman@gmail.com> writes:
>> Joost Kremers <joostkremers@yahoo.com> wrote:
>>> Nordlöw wrote:
>>>> 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.
>>>
>>> http://www.emacswiki.org/emacs/MultipleModes
>>
>> Pascal and Bastien, you recommended mmm-mode that is one of the
>> alternatives on that list. I have for a long time wondered if it works
>> with Emacs 22/23. Are you using it?
>
> I use mmm-mode sometimes. It works pretty well for Mason files (perl
> code embedded in html-like coding), which is what it was originally
> designed for. I believe it's the oldest and probably most mature
> multi-mode package.
>
>> Are there any features in it that you believe are missing in mumamo?
>
> I don't know anything about mumamo: mmm-mode works well enough that I've
> never seen any need to try any of the other ways.
Thanks for the answer Joseph. I just added some support for Mason
files to mumamo. It is not perfect (surprise! and there is an
indentation bug currently - those are very resistent to treatment),
but I would be glad if you or someone else that have been using
mmm-mode tested it and gave some feedback.
If you want to help with this then download the latest beta of nXhtml here:
http://ourcomments.org/Emacs/DL/elisp/nxhtml/beta/
That is a zip file which you set up by simply adding one line to .emacs, see
http://ourcomments.org/Emacs/nXhtml/doc/nxhtml.html#qg
When you are in a Mason file turn do
M-x mason-html-mumamo-mode
to test it. (BTW, what file extensions do Mason files normally have?)
- Re: Multiple Major Modes,
Lennart Borgman <=