emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Fast traversing directories


From: andrea Crotti
Subject: [Orgmode] Fast traversing directories
Date: Sat, 31 Oct 2009 17:07:06 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Well I would like to have simply all the org files
I produce wherever in my agenda.

I started to write something like

(dolist (x (directory-files "~/uni/" t))
  (if (file-directory-p x)
      (dolist (subject (directory-files x t))
        (if (file-directory-p subject)
            (setq org-agenda-files
                  (append org-agenda-files (directory-files subject t ".org$" 
t)))))))

but the problem is that it only goes two levels
and I guess it could be very slow.

I didn't find any function in elisp, maybe it would be better
to get a list of org-files with an external command (python or shell script),
what do you think?

I don't like the solution of setting them by hand, I would like to set
the upper level directory and make it searches inside it automatically...

How do you manage your org files?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]