From: Richard Riley <rileyrgdev@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Multiple Major Modes
Date: Mon, 02 Nov 2009 15:01:31 +0100 [thread overview]
Message-ID: <hcmont$ueg$1@ger.gmane.org> (raw)
In-Reply-To: 87bpjmhrbh.fsf@liv.ac.uk
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?
,----
| (require 'html-php)
| (add-to-list 'auto-mode-alist '("\\.php\\'" . html-php-mode))
--
next prev parent reply other threads:[~2009-11-02 14:01 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-29 9:45 Multiple Major Modes Nordlöw
2009-10-29 13:40 ` Pascal J. Bourguignon
2009-10-29 20:04 ` Joost Kremers
2009-10-29 22:14 ` Lennart Borgman
[not found] ` <mailman.9707.1256854525.2239.help-gnu-emacs@gnu.org>
2009-10-29 23:03 ` Pascal J. Bourguignon
2009-10-29 23:49 ` Lennart Borgman
[not found] ` <mailman.9710.1256860199.2239.help-gnu-emacs@gnu.org>
2009-10-30 0:52 ` Pascal J. Bourguignon
2009-10-30 3:28 ` Joseph Brenner
2009-11-01 23:14 ` Lennart Borgman
[not found] ` <mailman.9873.1257117309.2239.help-gnu-emacs@gnu.org>
2009-12-11 6:19 ` Joseph Brenner
2009-12-11 17:08 ` Lennart Borgman
2009-12-11 21:57 ` Joe Brenner
2009-12-11 22:06 ` Lennart Borgman
2009-12-12 2:16 ` Joe Brenner
2009-12-12 2:18 ` Lennart Borgman
2009-12-12 2:37 ` Joe Brenner
2009-11-01 21:24 ` Dave Love
2009-11-02 12:32 ` Lennart Borgman
2009-11-02 14:01 ` Richard Riley [this message]
2009-11-02 14:22 ` Lennart Borgman
2009-11-02 14:28 ` Richard Riley
2009-11-02 14:44 ` Richard Riley
2009-11-02 15:11 ` Richard Riley
-- strict thread matches above, loose matches on Subject: below --
2008-06-10 21:26 Nordlöw
2008-06-10 21:47 ` Lennart Borgman (gmail)
2008-06-11 5:42 ` William Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='hcmont$ueg$1@ger.gmane.org' \
--to=rileyrgdev@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).