From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= Subject: Re: [Babel] Macro for begin_src? Date: Sun, 18 Apr 2010 22:13:27 +0200 Message-ID: <87tyr8r02g.fsf@gmail.com> References: <4BC91BA7.6050904@ccbr.umn.edu> <87eiieuilx.fsf@fastmail.fm> <877ho5jb5g.wl%ucecesf@ucl.ac.uk> <87r5mcu2l7.fsf@stats.ox.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O3arx-00022G-3a for emacs-orgmode@gnu.org; Sun, 18 Apr 2010 16:13:29 -0400 Received: from [140.186.70.92] (port=42368 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3arv-00021H-Rc for emacs-orgmode@gnu.org; Sun, 18 Apr 2010 16:13:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O3aru-0001Fe-GD for emacs-orgmode@gnu.org; Sun, 18 Apr 2010 16:13:27 -0400 Received: from fg-out-1718.google.com ([72.14.220.154]:22263) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3aru-0001FO-8q for emacs-orgmode@gnu.org; Sun, 18 Apr 2010 16:13:26 -0400 Received: by fg-out-1718.google.com with SMTP id e21so1481879fga.12 for ; Sun, 18 Apr 2010 13:13:24 -0700 (PDT) In-Reply-To: <87r5mcu2l7.fsf@stats.ox.ac.uk> (Dan Davison's message of "Sun, 18 Apr 2010 12:50:44 -0400") 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: Dan Davison Cc: Bernt Hansen , Matt Lundin , emacs-orgmode@gnu.org Dan Davison writes: > I guess, for Nate's original application (converting existing code to > src blocks), what might have been most useful is something to enclose a > given region in a source block. Can anyone show how to do that with > yasnippet (or anything else)? I don't have a ready-to-use snippet, but this is what you need: http://yasnippet.googlecode.com/svn/trunk/doc/snippet-development.html#yas-= wrap-around-region HTH, =C5=A0t=C4=9Bp=C3=A1n