From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Chris Leyon" Subject: Dynamically compute org-agenda-files Date: Wed, 17 Oct 2007 11:20:30 -0400 Message-ID: <5ea706d0710170820v79a4284di3ede7ad6be48c23b@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IiAhF-00015v-Vl for emacs-orgmode@gnu.org; Wed, 17 Oct 2007 11:20:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IiAhD-0000zd-DC for emacs-orgmode@gnu.org; Wed, 17 Oct 2007 11:20:33 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IiAhD-0000zR-9e for emacs-orgmode@gnu.org; Wed, 17 Oct 2007 11:20:31 -0400 Received: from wr-out-0506.google.com ([64.233.184.237]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IiAhD-0003k6-3t for emacs-orgmode@gnu.org; Wed, 17 Oct 2007 11:20:31 -0400 Received: by wr-out-0506.google.com with SMTP id 50so1340560wra for ; Wed, 17 Oct 2007 08:20:30 -0700 (PDT) Content-Disposition: inline List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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?