From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: Recursive org-agenda-files Date: Tue, 04 Oct 2011 13:24:18 +0530 Message-ID: <81lit1jiol.fsf@gmail.com> References: <81vcs5jjoh.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:54729) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RAzpp-0003Md-0H for emacs-orgmode@gnu.org; Tue, 04 Oct 2011 03:54:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RAzpn-0001mH-Om for emacs-orgmode@gnu.org; Tue, 04 Oct 2011 03:54:40 -0400 Received: from mail-pz0-f47.google.com ([209.85.210.47]:36843) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RAzpn-0001mB-Iw for emacs-orgmode@gnu.org; Tue, 04 Oct 2011 03:54:39 -0400 Received: by pzk4 with SMTP id 4so734732pzk.6 for ; Tue, 04 Oct 2011 00:54:38 -0700 (PDT) In-Reply-To: <81vcs5jjoh.fsf@gmail.com> (Jambunathan K.'s message of "Tue, 04 Oct 2011 13:02:46 +0530") 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: Neilen Marais Cc: emacs-orgmode@gnu.org Jambunathan K writes: > Neilen Marais writes: > >> Hi, >> >> netty hacky gmail.com> writes: >> >>> >>> Hi Neilen, >>> >>> I think you want these in your .emacs (from >>> http://orgmode.org/worg/org-faq.html, "Can I add files recursively to >>> my list of agenda files?"): >>> (load-library "find-lisp") >>> (setq org-agenda-files (find-lisp-find-files "~/org" "\.org$")) >> >> Thanks. I tried this, but as far as I can tell it won't automatically see new >> files or directories as they are added, so I have to re-evaluate te setq every >> time I add new projects or files. Or am I wrong? > 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. >> Thanks >> Neilen >> >> >> >> >> --