From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: Problem with automatic recursive adding of org-agenda-files Date: Wed, 23 Oct 2013 19:23:29 +0800 Message-ID: <87zjq0dydq.fsf@ericabrahamsen.net> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44137) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYwWE-0000nz-M0 for emacs-orgmode@gnu.org; Wed, 23 Oct 2013 07:22:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VYwW8-0007YF-F1 for emacs-orgmode@gnu.org; Wed, 23 Oct 2013 07:22:30 -0400 Received: from plane.gmane.org ([80.91.229.3]:60060) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYwW8-0007Xv-8A for emacs-orgmode@gnu.org; Wed, 23 Oct 2013 07:22:24 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VYwW6-0008Pk-RM for emacs-orgmode@gnu.org; Wed, 23 Oct 2013 13:22:22 +0200 Received: from 123.122.44.74 ([123.122.44.74]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 23 Oct 2013 13:22:22 +0200 Received: from eric by 123.122.44.74 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 23 Oct 2013 13:22:22 +0200 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: emacs-orgmode@gnu.org Tor Eriksson writes: > Hello all, > > I have searched the web without finding a solution to the following > problem: > > I am using this snippet in my .emacs.d (using emacs starterkit) to > dynamically and recursively load all org files in the directory > "important-directory" and any subdirectory of this directory: > > (load-library "find-lisp") > (setq org-agenda-files (find-lisp-find-files "/home/user/important-directory" "\.org$")) > > The snippet comes from http://orgmode.org/worg/org-faq.html > > This set-up has worked fine for more than two years; every time I add > a new subdirectory with an .org file, this file gets picked up for > the agenda. I don't know why that's not working, but I'm doing this: (setq org-agenda-files '("~/org/")) And it works out fine. It will pick up all files under that directory that match `org-agenda-file-regexp', which defaults as everything ending in ".org". You might try that with "/home/user/important-directory/"? FWIW, I don't even have a `find-lisp-find-files' function in my installation (GNU Emacs 24.3.1). HTH, Eric