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

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

Re: mmm-mode/html-mode/php-mode issues


From: Lennart Borgman
Subject: Re: mmm-mode/html-mode/php-mode issues
Date: Sat, 23 May 2009 15:12:34 +0200

On Sat, May 23, 2009 at 1:34 PM, Yuri D'Elia <wavexx@users.sf.net> wrote:
> In article
> <e01d8a50905230147k2fd75df4q1ec6ad81ef5381d4@mail.gmail.com>,
>  Lennart Borgman <lennart.borgman@gmail.com> wrote:
>
>> > Can I use *just* mumamo and use html-mode with php as a submode? I
>> > somewhat tried months ago, but it seemed that mumamo was always loading
>> > nXhtml. I would happily replace mmm-mode if I could.
>>
>> Nearly. All features in nXhtml are autoloaded. Without byte compiling
>> nXhtml it loads in 5 sec on my old pc. (Byt that I mean it runs
>> nxhtml/autostart.el in 5 sec.) Nearly all of that time is for loading
>> mumamo.el. After byte compiling nXhtml (there is an entry for doing
>> that in the nXhtml menu) nxhtml/autostart.el takes 0.1 sec.
>
> I will try again then. I remember editing a normal xhtml+php file on my
> powerbook G4 took around ~4 seconds when bytecompiled, and then again
> indenting/font-locking was unbearable.

That sounds very strange. I would be glad for a bug report with an example.


> However I *still* want to know what's the issue with mmm-mode :).
> Should I post to emacs.devel? The mmm-mode mailing list seems dead.

mmm-mode has nothing to do with emacs devel. You might have a look at
EmacsWiki. I think I saw that someone said he had got it to work with
Emacs 22.


>> But what do you mean with that "mumamo was always loading nXhtml"?
>> There is no supported way to use mumamo.el without loading nXhtml (ie
>> running nxhtml/autostart.el).
>
> That's precisely what I meant: can I use mumamo as a *replacement* for
> mmm-mode? (for example, for completely different kind of files?)

Of course you can use it for different kind of files. You can define
your own "multi major mode" if you need to. There are however a lot of
predifined ones, for mako, mjt, jsp, laszlo, eruby etc.

Maybe the name "nXhtml" is a bit unfortunate for the package. It all
started with that I wanted a good major mode for writing (x)html
files. The first thing I wrote was nxhtml-mode (based on nxml-mode).
But then I discovered that what I really needed was a multi major
mode. I tried mmm-mode, but it could not handle that together with
nxhtml-mode. That is how it all started, and that is why it is named
nXhtml...




reply via email to

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