From: david@adboyd.com (J. David Boyd)
To: emacs-orgmode@gnu.org
Subject: Re: How to let Org Agenda search all files in a directory *recursively* ?
Date: Thu, 27 Jun 2013 17:22:39 -0400 [thread overview]
Message-ID: <m9hi7ghfgsf4.fsf@W0144758.usac.mmm.com> (raw)
In-Reply-To: 87fvw3bcm0.fsf@yahoo.fr
Nicolas Richard <theonewiththeevillook@yahoo.fr> writes:
> david@adboyd.com (J. David Boyd) writes:
>> Huh, when I set my org-agenda-files to ~/org/, and have TODO files in
>> ~/org/home and ~/org/work, and press C-c a a, it loads all the todo file,
>> recursed down to all the subdirectories.
>>
>> However, and this is strange, after it loads them all up, it changes
>> org-agenda-files to discrete filepaths, and not just the directory anymore.
>
> It's what happens for me too, but I specifically wrote some elisp to do
> that in my .emacs. Can you reproduce from -Q ?
emacs -Q didn't work at all, so I went digging into my config file.
Here's what recursively loads .org files for me. I don't remember when I
added this, but it's been a while...
In my emacs-init.org file, I have:
(add-hook 'org-agenda-mode-hook
(lambda ()
(setq org-agenda-files
(find-lisp-find-files "~/org" "\.org$")
)
)
)
So no matter what I might type into the org-agenda-files in customize, this is
what really runs. And it works fine too. I think I got this code from Sacha
Chua, but I'm not certain.
Dave
next prev parent reply other threads:[~2013-06-27 21:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-27 7:53 How to let Org Agenda search all files in a directory *recursively* ? chris
2013-06-27 13:20 ` J. David Boyd
2013-06-27 13:57 ` Nick Dokos
2013-06-27 14:32 ` Nicolas Richard
2013-06-27 17:53 ` J. David Boyd
2013-06-27 19:03 ` Nicolas Richard
2013-06-27 21:22 ` J. David Boyd [this message]
2013-06-27 23:40 ` Suvayu Ali
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=m9hi7ghfgsf4.fsf@W0144758.usac.mmm.com \
--to=david@adboyd.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).