emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] [babel] demonstration mode-switching between code blocks


From: Giovanni Ridolfi
Subject: Re: [Orgmode] [babel] demonstration mode-switching between code blocks
Date: Thu, 5 Nov 2009 09:53:30 +0000 (GMT)

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.
> Solution: I found on emacs-wiki the minor-mode two-mode-mode.el
>  [1] from David
> N. Welton. 

--- Mer 4/11/09, Eric Schulte <address@hidden> ha scritto:
> Torsten Wagner <address@hidden>
> 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







reply via email to

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