[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Specifying mode in file variables trouble
From: |
Lennart Borgman (gmail) |
Subject: |
Re: Specifying mode in file variables trouble |
Date: |
Tue, 21 Oct 2008 21:16:49 +0200 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 |
Richard M. Stallman wrote:
> But I would be wary of pulling in a full-fledged XML machinery just to
> edit (pure) PHP source just because it is sometimes embedded in (X)HTML
> templates.
>
> That would be a problem, but we can easily avoid it. Here are two
> ways.
>
> * Make `php-mode' check whether there is HTML or XML in the file
> and choose the mode accordingly.
>
> * Arrange for mumamo not to call `nxml-mode' unless/until you move
> point into an HTML chunk.
This is the way I have implemented it now, a major mode is not loaded by
mumamo until you move into a chunk where this major mode is used.
- Re: Specifying mode in file variables trouble,
Lennart Borgman (gmail) <=