From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Rettke Subject: How would you export one headline every time that you tangle the file? Date: Wed, 12 Aug 2015 16:04:32 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50116) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPdCM-0002Yl-RM for emacs-orgmode@gnu.org; Wed, 12 Aug 2015 17:04:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZPdCL-0001l1-OF for emacs-orgmode@gnu.org; Wed, 12 Aug 2015 17:04:34 -0400 Received: from mail-wi0-x229.google.com ([2a00:1450:400c:c05::229]:35479) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPdCL-0001kU-Hw for emacs-orgmode@gnu.org; Wed, 12 Aug 2015 17:04:33 -0400 Received: by wicne3 with SMTP id ne3so115840459wic.0 for ; Wed, 12 Aug 2015 14:04:32 -0700 (PDT) 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: "emacs-orgmode@gnu.org" Good afternoon, I've got an org file. It has a bunch of headlines. There is on headline names README. I want to do something every time I tangle the file. I want to: - Go to that headline - Select set the region to the contents of that headline (org-mark-subtree) - Export the contents using the Github Flavored Markup to the file README.m= d. I figured that I would figure out how to do all of this using Elisp, write a function, and add that function to the org-babel-post-tangle hook. I feel OK about that. I haven't started yet because I started to wonder if doing this sort of thi= ng is just "built into" Org-Mode and coding it up would be a poor use of time.= This seems like something that I can't be the first one to be doing this. So, I wondered, how would you do that? I don't want to recode something that Org-Mode already does just because I don't know all of Org-Mode. Sincerely, Grant Rettke -- gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/ =E2=80=9CWisdom begins in wonder.=E2=80=9D --Socrates =E2=80=9CAll creativity is an extended form of a joke.=E2=80=9D --Kay ((=CE=BB (x) (x x)) (=CE=BB (x) (x x))) =E2=80=9CLife has become immeasurably better since I have been forced to st= op taking it seriously.=E2=80=9D --Thompson