emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Mehul Sanghvi <mehul.sanghvi@gmail.com>
To: ML Emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Dynamicaly #+INCLUDE files
Date: Tue, 12 Aug 2014 01:05:54 -0400	[thread overview]
Message-ID: <CAPo9-A-PwWfHaWcVZscVfgu7OxeuR4eCKat1N8ZHU07F_qQE5A@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 601 bytes --]

I have a directory which has multiple sub-directories.  The sub-directories
contain files, some of which I want included into my org file when I export
it for publishing to HTML
using C-c C-e P p to publish.

Rather than manually adding the files I want to an Org file, Is there a way
to dynamically
include the files and have them processed by the publishing exporter ?
 Something
along the lines of:

      for file in *.c *.cpp *.m *.java *.lisp
      do
         echo #+INCLUDE the file
      done

Is there a way to do what I'm looking for ?


-- 
Mehul N. Sanghvi
email: mehul.sanghvi@gmail.com

[-- Attachment #2: Type: text/html, Size: 891 bytes --]

                 reply	other threads:[~2014-08-12  5:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAPo9-A-PwWfHaWcVZscVfgu7OxeuR4eCKat1N8ZHU07F_qQE5A@mail.gmail.com \
    --to=mehul.sanghvi@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).