Esben Stien <b...@esben-stien.name> writes: > "Julian M. Burgos" <jul...@hafro.is> 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