emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Dynamically compute org-agenda-files
@ 2007-10-17 15:20 Chris Leyon
  2007-10-19  8:23 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Chris Leyon @ 2007-10-17 15:20 UTC (permalink / raw)
  To: emacs-orgmode

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?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Dynamically compute org-agenda-files
  2007-10-17 15:20 Dynamically compute org-agenda-files Chris Leyon
@ 2007-10-19  8:23 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2007-10-19  8:23 UTC (permalink / raw)
  To: Chris Leyon; +Cc: emacs-orgmode


The Emacs Wiki page OrgMode lists this possibility

    (setq org-agenda-files (file-expand-wildcards "~/org/*.org"))

I guess another possibility would be that *directories* could
be members in org-agenda-files and would be dynamically
expanded to all .org files in that directory....  I don't want to
loose the ability to add individual files in different locations
to the list.

- Carsten



On Oct 17, 2007, at 17:20, Chris Leyon wrote:

> 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?
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>

--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-10-19  8:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-17 15:20 Dynamically compute org-agenda-files Chris Leyon
2007-10-19  8:23 ` Carsten Dominik

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).