From mboxrd@z Thu Jan 1 00:00:00 1970 From: netty hacky Subject: Re: Recursive org-agenda-files Date: Mon, 3 Oct 2011 10:38:50 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:50441) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RAmTh-0008A6-4b for emacs-orgmode@gnu.org; Mon, 03 Oct 2011 13:38:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RAmTb-0004Pg-PX for emacs-orgmode@gnu.org; Mon, 03 Oct 2011 13:38:57 -0400 Received: from mail-vx0-f169.google.com ([209.85.220.169]:42821) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RAmTb-0004Pc-MT for emacs-orgmode@gnu.org; Mon, 03 Oct 2011 13:38:51 -0400 Received: by vcbfo14 with SMTP id fo14so3771969vcb.0 for ; Mon, 03 Oct 2011 10:38:50 -0700 (PDT) In-Reply-To: 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 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$")) Or you can add each project directory to org-agenda-files yourself, however, this is not recursive, it only adds .org files under the project directories, not their sub-directories (see docstring of org-agenda-files: C-h v org-agenda-files): (setq org-agenda-files '("~/org/projA" "~/org/projB" "~/org/projC")) In my setup, I also use the following to exclude directory "exc" from the list: (eval-when-compile (require 'cl)) (setq org-agenda-files (remove-if '(lambda (x) (string-match (concat "^" (regexp-quote (expand-file-name "~/org/exc/"))) x)) org-agenda-files)) Net On Mon, Oct 3, 2011 at 8:48 AM, Neilen Marais wrote: > Hi, > > I like to have a directory per project, with an .org file in each > directory. Is there a way to set org-agenda-files such that it can > recursively scan my whole projects dir for all org files? > > Thanks > Neilen > >