From: Giovanni Ridolfi <giovanni.ridolfi@yahoo.it>
To: Torsten Wagner <torsten.wagner@gmail.com>,
Eric Schulte <schulte.eric@gmail.com>,
Adam Spiers <orgmode@adamspiers.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: [babel] demonstration mode-switching between code blocks
Date: Thu, 5 Nov 2009 09:53:30 +0000 (GMT) [thread overview]
Message-ID: <254833.69072.qm@web28311.mail.ukl.yahoo.com> (raw)
In-Reply-To: <m2zl72ndyf.fsf@gmail.com>
Torsten Wagner (torsten.wagner@gmail.com) wrote:
> Hi everybody,
>
> Abstract: This is a very quick (and I assume very dirty) hack,
> how to switch
> between org-mode and any other mode which you like to use
> in the source code
> blocks.
> Solution: I found on emacs-wiki the minor-mode two-mode-mode.el
> [1] from David
> N. Welton.
--- Mer 4/11/09, Eric Schulte <schulte.eric@gmail.com> ha scritto:
> Torsten Wagner <torsten.wagner@gmail.com>
> writes:
>
> > Hi Adam,
> > Just for
> reference, there are few major modes out
> > there implementing this kind
> > of approach:
> >
> > http://www.emacswiki.org/emacs/MultipleModes
> >
> > For example I have used
> > mmm-mode to good effect in the past, to
> > auto-switch between HTML and Perl:
> >
> > http://mmm-mode.sourceforge.net/
> >
>
> I have played with using MuMaMo mode before
>
> http://article.gmane.org/gmane.emacs.orgmode/8112
>
> but found it too buggy for practical use.
>
what about using C-c ' ?
(also suggested by Dan Davison)
manual 11.3 Literal examples
C-c '
Edit the source code example at point in its native mode. This
works by switching to a temporary buffer with the source code.
You need to exit by pressing `C-c '' again(3), the edited version
will then replace the old version in the Org buffer. Fixed-width
regions (where each line starts with a colon followed by a space)
will be edited using `artist-mode'(4) to allow creating ASCII
drawings easily. Using this command in an empty line will create
a new fixed-width region.
hth
Giovanni
prev parent reply other threads:[~2009-11-05 9:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-04 6:03 [babel] demonstration mode-switching between code blocks Torsten Wagner
2009-11-04 10:42 ` Adam Spiers
2009-11-04 14:52 ` Torsten Wagner
2009-11-04 22:05 ` Eric Schulte
2009-11-05 9:53 ` Giovanni Ridolfi [this message]
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.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=254833.69072.qm@web28311.mail.ukl.yahoo.com \
--to=giovanni.ridolfi@yahoo.it \
--cc=emacs-orgmode@gnu.org \
--cc=orgmode@adamspiers.org \
--cc=schulte.eric@gmail.com \
--cc=torsten.wagner@gmail.com \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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).