From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Re: [Babel] Macro for begin_src? Date: Fri, 16 Apr 2010 15:34:27 -1000 Message-ID: <49A31C30-B1D4-4D21-A771-BDB49D8B3708@tsdye.com> References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O2wva-0004PA-R4 for emacs-orgmode@gnu.org; Fri, 16 Apr 2010 21:34:34 -0400 Received: from [140.186.70.92] (port=37051 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O2wvZ-0004OL-Ke for emacs-orgmode@gnu.org; Fri, 16 Apr 2010 21:34:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O2wvX-00033C-Vc for emacs-orgmode@gnu.org; Fri, 16 Apr 2010 21:34:33 -0400 Received: from oproxy2-pub.bluehost.com ([66.147.249.254]:37408 helo=outbound-mail-360.bluehost.com) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1O2wvX-000330-NV for emacs-orgmode@gnu.org; Fri, 16 Apr 2010 21:34:31 -0400 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: Nathan Neff Cc: emacs-orgmode@gnu.org On Apr 16, 2010, at 3:18 PM, Nathan Neff wrote: > 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 > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode Hi Nate, I use a yasnippet for that after learning about them from Eric Shulte's starter kit. They've saved me several thousand keystrokes by now. HTH, Tom