From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Oesting Subject: Re: Emacs shell-script to tangle org-babel at the command line. Date: Mon, 13 Aug 2012 15:01:40 -0700 Message-ID: <96D4EB24-B92C-48F8-9087-492F78ABB984@me.com> References: <060745A0-24ED-40CC-B501-B35969434F5F@me.com> Mime-Version: 1.0 Content-Type: text/plain; CHARSET=US-ASCII Content-Transfer-Encoding: 7BIT Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52601) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T12ht-0000Hv-GK for emacs-orgmode@gnu.org; Mon, 13 Aug 2012 18:01:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T12hr-0000KA-I2 for emacs-orgmode@gnu.org; Mon, 13 Aug 2012 18:01:53 -0400 Received: from nk11p99mm-asmtpout002.mac.com ([17.158.233.223]:64267) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T12hr-0000Jy-Bx for emacs-orgmode@gnu.org; Mon, 13 Aug 2012 18:01:51 -0400 Received: from [10.234.252.83] (10.sub-174-254-224.myvzw.com [174.254.224.10]) by nk11p03mm-asmtp992.mac.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Jan 3 2012)) with ESMTPSA id <0M8P00AG1RUTST80@nk11p03mm-asmtp992.mac.com> for emacs-orgmode@gnu.org; Mon, 13 Aug 2012 22:01:49 +0000 (GMT) In-reply-to: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Andrew Young Cc: "emacs-orgmode@gnu.org" You've hit upon it exactly; this solution works perfectly. Thank you, Andrew! This little tidbit, a few lines at the header, and a slightly different script now make my tangled Orgmode files executable at the command line. Ah, the joys of literate code. - M This message was sent from my iPad. On Aug 13, 2012, at 12:12 PM, Andrew Young wrote: > Hi Matthew, > > The previous code works for me if the file I'm trying to tangle is in > "~/.emacs.d". > ...