From mboxrd@z Thu Jan 1 00:00:00 1970 From: Giovanni Ridolfi Subject: Re: [babel] demonstration mode-switching between code blocks Date: Thu, 5 Nov 2009 09:53:30 +0000 (GMT) Message-ID: <254833.69072.qm@web28311.mail.ukl.yahoo.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N5z28-0006ky-Kq for emacs-orgmode@gnu.org; Thu, 05 Nov 2009 04:53:36 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N5z26-0006ib-7m for emacs-orgmode@gnu.org; Thu, 05 Nov 2009 04:53:35 -0500 Received: from [199.232.76.173] (port=34324 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N5z25-0006iW-T1 for emacs-orgmode@gnu.org; Thu, 05 Nov 2009 04:53:33 -0500 Received: from web28311.mail.ukl.yahoo.com ([87.248.110.130]:25223) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1N5z25-0002SW-BI for emacs-orgmode@gnu.org; Thu, 05 Nov 2009 04:53:33 -0500 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Torsten Wagner , Eric Schulte , Adam Spiers Cc: emacs-orgmode@gnu.org Torsten Wagner (torsten.wagner@gmail.com) wrote:=0A> Hi everybody,=0A>=0A> = Abstract: This is a very quick (and I assume very dirty) hack, =0A> how to = switch=0A> between org-mode and any other mode which you like to use =0A> = in the source code=0A> blocks.=0A> Solution: I found on emacs-wiki the mino= r-mode two-mode-mode.el=0A> [1] from David=0A> N. Welton. =0A=0A--- Mer 4/= 11/09, Eric Schulte ha scritto:=0A> Torsten Wagner= =0A> writes:=0A> =0A> > Hi Adam,=0A> > Just for= =0A> reference, there are few major modes out=0A> >=A0=A0there implementing= this kind=0A> > of approach:=0A> >=A0 =A0 =0A> >=A0 =A0=A0=A0=A0http://www= .emacswiki.org/emacs/MultipleModes=0A> >=A0 =A0 =0A> >=A0 =A0=A0=A0For exam= ple I have used=0A> > mmm-mode to good effect in the past, to=0A> >=A0 =A0= =A0=A0auto-switch between HTML and Perl:=0A> >=A0 =A0 =0A> >=A0 =A0=A0=A0= =A0http://mmm-mode.sourceforge.net/=0A> >=0A> =0A> I have played with using= MuMaMo mode before=0A> =0A> http://article.gmane.org/gmane.emacs.orgmode/8= 112=0A> =0A> but found it too buggy for practical use.=0A> =0A=0Awhat about= using C-c ' ?=0A=0A(also suggested by Dan Davison)=0A=0Amanual 11.3 Litera= l examples=0AC-c '=0A Edit the source code example at point in its nati= ve mode. This=0A works by switching to a temporary buffer with the sou= rce code.=0A You need to exit by pressing `C-c '' again(3), the edited = version=0A will then replace the old version in the Org buffer. Fixed-= width=0A regions (where each line starts with a colon followed by a spa= ce)=0A will be edited using `artist-mode'(4) to allow creating ASCII=0A= drawings easily. Using this command in an empty line will create=0A = a new fixed-width region. =0Ahth=0A=0AGiovanni=0A=0A=0A