From: Adam Spiers <orgmode@adamspiers.org>
To: emacs-orgmode@gnu.org
Subject: Re: [babel] demonstration mode-switching between code blocks
Date: Wed, 4 Nov 2009 10:42:30 +0000 [thread overview]
Message-ID: <20091104104230.GK32187@atlantic.linksys.moosehall> (raw)
In-Reply-To: <200911041503.51029.torsten.wagner@googlemail.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. It is far from being addable to org-babel yet but might be a good
> starting point.
[snipped]
> Solution: I found on emacs-wiki the minor-mode two-mode-mode.el [1] from David
> N. Welton. I was able to modify it with a minimum to allow switching between
> org-mode and python-mode. However, other (multiple) modes should be possible
> as well.
Thanks for sharing. 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/
next prev parent reply other threads:[~2009-11-04 10:42 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 [this message]
2009-11-04 14:52 ` Torsten Wagner
2009-11-04 22:05 ` Eric Schulte
2009-11-05 9:53 ` Giovanni Ridolfi
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=20091104104230.GK32187@atlantic.linksys.moosehall \
--to=orgmode@adamspiers.org \
--cc=emacs-orgmode@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.
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).