emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Chris Leyon" <cleyon@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Dynamically compute org-agenda-files
Date: Wed, 17 Oct 2007 11:20:30 -0400	[thread overview]
Message-ID: <5ea706d0710170820v79a4284di3ede7ad6be48c23b@mail.gmail.com> (raw)

I currently use Planner for organizing my work activities & notes and
am contemplating converting to Org-mode, but there is a capability
that Planner has which Org doesn't (AFAIK) that is holding me back.
(No flamewar please.)

I have hundreds of Planner files, one for each of my customers, with
WikiNames.  When I add a new customer, I just create a new file from a
template and put it in my `muse-project-alist' directory and Planner
automatically sees the file, its tasks, it is automatically
searchable, etc.

But in org-mode, it is not feasible to maintain hundreds of separate
files.  I prefer having separate files for each customer so I'd like
to keep that paradigm.

What I would like is something along the lines of an
org-agenda-files-directory variable, which would be a directory (or a
list of dirs) that would be automatically searched for *.org files.

I'm no lisp hacker, but it appears that Org uses the value of the
variable `org-agenda-files'.  What if this could be changed to a
function along the lines of:

(defun org-agenda-files ()
  (directory-files org-agenda-files-directory t "*\\.org"))

or something similar?

             reply	other threads:[~2007-10-17 15:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-17 15:20 Chris Leyon [this message]
2007-10-19  8:23 ` Dynamically compute org-agenda-files Carsten Dominik

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=5ea706d0710170820v79a4284di3ede7ad6be48c23b@mail.gmail.com \
    --to=cleyon@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).