From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrea Rossetti Subject: A Babel block to #+INCLUDE all .org files of a directory Date: Sat, 30 Aug 2014 17:50:00 +0200 Message-ID: <84oav2ht93.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34732) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNkv1-00063H-Ah for emacs-orgmode@gnu.org; Sat, 30 Aug 2014 11:50:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XNkuv-0004YL-EL for emacs-orgmode@gnu.org; Sat, 30 Aug 2014 11:50:23 -0400 Received: from plane.gmane.org ([80.91.229.3]:55712) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNkuv-0004YH-7f for emacs-orgmode@gnu.org; Sat, 30 Aug 2014 11:50:17 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XNkup-0005LX-83 for emacs-orgmode@gnu.org; Sat, 30 Aug 2014 17:50:11 +0200 Received: from net-93-144-105-96.cust.dsl.teletu.it ([93.144.105.96]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 30 Aug 2014 17:50:11 +0200 Received: from andrea.rossetti by net-93-144-105-96.cust.dsl.teletu.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 30 Aug 2014 17:50:11 +0200 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 Cc: mehul.sanghvi@gmail.com Hi Org users, I wrote a Babel block to generate the #+INCLUDE statements for all Org files of a directory. Nothing spectacular: not recursive through directories, only .org files ... but I wanted to share it, just in case someone finds it helpful. Source code and usage example are available here: https://github.com/thesoftwarebin/the-emacs-software-bin/tree/master/include-all-org-files (GitHub renders Org files as html, so be sure to click the "Raw" button in order to see #+BEGIN_SRC, #+END_SRC and #+COMMENTS) Opinions, corrections and enhancements are of course more than welcome. Kindest regards, Andrea