From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Re: [Babel] Macro for begin_src? Date: Sat, 17 Apr 2010 11:12:32 +0100 Message-ID: <87ljcm75gv.wl%ucecesf@ucl.ac.uk> References: <4BC91BA7.6050904@ccbr.umn.edu> Reply-To: Eric S Fraga Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O3515-0003pG-Lw for emacs-orgmode@gnu.org; Sat, 17 Apr 2010 06:12:47 -0400 Received: from [140.186.70.92] (port=59991 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3513-0003ou-UH for emacs-orgmode@gnu.org; Sat, 17 Apr 2010 06:12:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O3512-000892-CQ for emacs-orgmode@gnu.org; Sat, 17 Apr 2010 06:12:45 -0400 Received: from vscane-b.ucl.ac.uk ([144.82.108.141]:45327) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3512-00087T-86 for emacs-orgmode@gnu.org; Sat, 17 Apr 2010 06:12:44 -0400 In-Reply-To: <4BC91BA7.6050904@ccbr.umn.edu> 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: Erik Iverson Cc: emacs-orgmode@gnu.org On Fri, 16 Apr 2010 21:23:35 -0500, Erik Iverson wrote: > > http://doc.norang.ca/org-mode.html#Yasnippets > > > > If anyone else has a different macro set up, I'm still interested in > > hearing your solutions. > > > > Nope, yasnippet is the way to go I think! +1 it might be nice to have a worg page on snippets for org-mode? I'm happy to contribute a few. The ones I use the most are these two: block: --8<---------------cut here---------------start------------->8--- #name : #+begin_...#+end_ # -- #+begin_$1 $2 $0 #+end_$1 --8<---------------cut here---------------end--------------->8--- and figure: --8<---------------cut here---------------start------------->8--- #name : figure # -- #+attr_latex: width=$1\textwidth [[file:$2.pdf]] $0 --8<---------------cut here---------------end--------------->8---