From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Multiple Recursive Directories with org-agenda-files Date: Tue, 15 Apr 2014 16:01:22 -0400 Message-ID: <877g6q9xbh.fsf@alphaville.bos.redhat.com> References: <87d2gj34a3.fsf@quasar.esben-stien.name> <8761ma1l0t.fsf@quasar.esben-stien.name> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33955) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wa9Y9-0004gz-Vm for emacs-orgmode@gnu.org; Tue, 15 Apr 2014 16:01:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wa9Y4-0002Sz-LI for emacs-orgmode@gnu.org; Tue, 15 Apr 2014 16:01:45 -0400 Received: from plane.gmane.org ([80.91.229.3]:55273) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wa9Y4-0002Pn-Fi for emacs-orgmode@gnu.org; Tue, 15 Apr 2014 16:01:40 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Wa9Xy-0007Ot-MW for emacs-orgmode@gnu.org; Tue, 15 Apr 2014 22:01:34 +0200 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 15 Apr 2014 22:01:34 +0200 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 15 Apr 2014 22:01:34 +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 Esben Stien writes: > "Julian M. Burgos" writes: > >> (load-library "find-lisp") >> (add-hook 'org-agenda-mode-hook (lambda () >> (setq org-agenda-files >> (find-lisp-find-files "/home/julian/Documents" "\.org$")) >> )) > > This is not a multiple directories examples, so I tried: > > (add-hook 'org-agenda-mode-hook (lambda () > (setq org-agenda-files (append > (find-lisp-find-files "~/foo/bar" "\.org$") > (find-lisp-find-files "~/hukarz/quux" "\.org$"))))) > > , but that just threw a lisp error. You need to append all the subsequent lists onto the first list, creating a big list which can be setq'ed to org-agenda-files. What you tried to do is the equivalent of (setq foo '(1 2 3) '(4 5 6)) which is not legal lisp - do C-h f setq RET to find out why. Nick