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

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

Re: Enabling mode for part of buffer / region


From: tomas
Subject: Re: Enabling mode for part of buffer / region
Date: Fri, 24 Jan 2020 12:16:07 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Fri, Jan 24, 2020 at 11:49:57AM +0100, Michael Anckaert wrote:
> I wanted to document my problem and the solution I reached in case some
> else needs it. 

[...]

Since I haven't seen it in the thread (apologies if I have
overseen it), I think this is a problem class which arises
in other contexts (e.g. Javascript embedded in HTML, SQL
embedded in some host language, etc.)

There is a whole flurry of solutions which have emerged
for that, generally under the title "multiple major modes"

Perhaps those are a bit heavyweight wrt what you had in
mind (Org doesn't try to have the whole major mode up and
running on the snippet, but offers editing in another buffer).

Emacs seems to be slowly converging towards something.

Here [1] is a good overview of what's available:

Cheers

https://www.emacswiki.org/emacs/MultipleModes
-- tomás

Attachment: signature.asc
Description: Digital signature


reply via email to

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