emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rainer@krugs.de (Rainer M. Krug)
To: emacs-orgmode@gnu.org
Subject: Importing all files into .org document source blocks
Date: Fri, 24 May 2013 14:03:44 +0200	[thread overview]
Message-ID: <87y5b47ffj.fsf@krugs.de> (raw)

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

Hi

I would like to import all files in a directory into an org document,
and each file should be in one source block, so that tangling the
document, will result in all files created.

My reasoning: I am using org-mode to keep track of installations on my
machine (apt-get as well as other installs) to make it easier to
re-install a new version of the Linux when necessary.

Now apart from the installation commands, I also have to keep track of
the installation sources. I was thinking of having them in the document,
where each source (i.e. each file in /etc/apt/sources.list.d/.) has it's
own source block, so that I can easily change the Ubuntu version and
tangle the document to obtain the new sources. 

Now I am lazy, and adding each file manually is prone to errors
(i.e. forgetting one). Therefore my question:

Is there a way of importing all files in a directory
(/etc/apt/sources/list.d/) into an org document, with each being in a
separate code block?

Thanks,

Rainer

-- 
Rainer M. Krug

[-- Attachment #2: Type: application/pgp-signature, Size: 489 bytes --]

             reply	other threads:[~2013-05-24 12:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-24 12:03 Rainer M. Krug [this message]
2013-05-24 20:49 ` Importing all files into .org document source blocks Myles English

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=87y5b47ffj.fsf@krugs.de \
    --to=rainer@krugs.de \
    --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).