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

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

Re: narrow with mode?


From: Lennart Borgman
Subject: Re: narrow with mode?
Date: Tue, 2 Jun 2009 04:05:36 +0200

On Sat, May 23, 2009 at 3:38 PM, David Abrahams <dave@boostpro.com> wrote:
>
> Hi All,
>
> I often find myself wanting to work on a region of a buffer in a
> different mode from the current one.  For example, I'd like to use
> markdown-mode on the body of a weblogger.el blog entry, and then I'd
> further like to use c++-mode (or whatever) on code snippets within that
> entry.  So I'd like to first narrow the body of the entry into markdown
> mode, then narrow again to c++-mode, then pop back out to markdown mode
> on the whole body, and finally out to weblogger-entry-mode on the whole
> buffer.
>
> This seems like it must be an incredibly common need, but I've never
> seen anything designed to support it.  Closest thing I've seen is
> http://www.blackie.dk/emacs/narrow-stack.el, but it only handles part of
> the problem.  Anyone got a hint for me?

You can do that with the latest version of nXhtml (ver 1.80)




reply via email to

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