[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Multiple Recursive Directories with org-agenda-files
From: |
Nick Dokos |
Subject: |
Re: [O] Multiple Recursive Directories with org-agenda-files |
Date: |
Tue, 15 Apr 2014 16:01:22 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) |
Esben Stien <address@hidden> writes:
> "Julian M. Burgos" <address@hidden> 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