From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: [Babel] Macro for begin_src? Date: Fri, 16 Apr 2010 21:37:21 -0400 Message-ID: <87wrw6luzy.fsf@gollum.intra.norang.ca> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O2wyO-0005Kl-Ly for emacs-orgmode@gnu.org; Fri, 16 Apr 2010 21:37:28 -0400 Received: from [140.186.70.92] (port=39303 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O2wyN-0005KZ-CG for emacs-orgmode@gnu.org; Fri, 16 Apr 2010 21:37:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O2wyL-0003OB-RA for emacs-orgmode@gnu.org; Fri, 16 Apr 2010 21:37:27 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:57193) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O2wyL-0003O5-M3 for emacs-orgmode@gnu.org; Fri, 16 Apr 2010 21:37:25 -0400 In-Reply-To: (Nathan Neff's message of "Fri\, 16 Apr 2010 20\:18\:48 -0500") 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: Nathan Neff Cc: emacs-orgmode@gnu.org Nathan Neff writes: > I've been converting my init.el file to org-babel, and am getting tired of > copying/pasting or typing the begin_src and end_src blocks. > > Example: > #+begin_src emacs-lisp :results silent > #+end_src > > As an Emacs n00b, I'd like to know if anyone here has defined some kind of > macro / shortcut to define an org-babel block. > > I'd like a shortcut/macro that I could put into my config files, and put into my git repo. > > Thanks for any input, > > --Nate That sounds like a good candidate for yasnippet to me. -Bernt