From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Sauer Subject: Re: Recursive org-agenda-files Date: Tue, 4 Oct 2011 21:33:09 -0500 Message-ID: References: <81vcs5jjoh.fsf@gmail.com> <81lit1jiol.fsf@gmail.com> <21575.1317737534@alphaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:34952) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBHIG-0000mD-GT for emacs-orgmode@gnu.org; Tue, 04 Oct 2011 22:33:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RBHIF-00051Y-CO for emacs-orgmode@gnu.org; Tue, 04 Oct 2011 22:33:12 -0400 Received: from mail-iy0-f169.google.com ([209.85.210.169]:49500) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBHIF-000517-81 for emacs-orgmode@gnu.org; Tue, 04 Oct 2011 22:33:11 -0400 Received: by iaen33 with SMTP id n33so1743940iae.0 for ; Tue, 04 Oct 2011 19:33:10 -0700 (PDT) In-Reply-To: <21575.1317737534@alphaville.dokosmarshall.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com, Org Mode Mailing List My understanding is that you want a file that gets moved into the active directory to be automatically included in the agenda? >From worg: You can simply include the directory (as one of the items) in the value of the variable org-agenda-files: (setq org-agenda-files '("/my/special/path/org/active/")) There is another way of accomplishing the same end: (setq org-agenda-files (file-expand-wildcards "/my/special/path/org/active/*.org")) The other files/directories could be in the extended text search if needed but not part of the automatic agenda. Just my two cents. Not that playing with agenda hooks might have some advantages. Matt Sauer On Tue, Oct 4, 2011 at 9:12 AM, Nick Dokos wrote: > Neilen Marais wrote: > >> Jambunatha, >> >> >> > > Have you considered adding it to say org-mode-hook? >> > >> > Seems like a Wrong suggestion to me. >> > >> > Try using `C-c [' to add the current org file. I am assuming that org >> > files are created by hand and not by some daemon that spits out agenda >> > files when you are away from emacs. >> >> Not a daemon, no, but I do tend to move files around. I.e. I'll move a project >> file/dir from my "someday" folder to my "active" folder. I would like to avoid >> any further manual steps to get it integrated in my agenda. >> >> Is there a hook function that gets called every time an agenda view is opened or >> refreshed? I could probably use that to update the agenda list. >> > > Seek and ye shall find: > > C-h v org-agenda--hook RET > > will list all the matching hooks. Which one to choose? I'll leave that up > to the interested reader :-) Or try > > C-h v org--hook RET > > to get a list of *all* the org hooks. > > Nick > > > > >