[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] [babel] demonstration mode-switching between code blocks
From: |
Adam Spiers |
Subject: |
Re: [Orgmode] [babel] demonstration mode-switching between code blocks |
Date: |
Wed, 4 Nov 2009 10:42:30 +0000 |
User-agent: |
Mutt/1.5.20 (2009-08-17) |
Torsten Wagner (address@hidden) 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/