Hi Olivier and Cameron,
Olivier Schwander wrote:
> Le 11 Nov 2011 12:17, Cameron Seader a écrit:
>> I get an error when setting the variable to a folder
>> (setq org-agenda-custom-commands
>> ((org-agenda-files '("~/Documents/Notes/org/"))
>> ))
>
> You are not supposed to set it to a folder.
"Yes, you can". See
http://www.gnu.org/software/emacs/manual/html_node/org/Agenda-files.html.
But your error comes from the way you write you agenda custom commands: no
dispatcher key, no documentation string, etc.
> I use something like:
>
> (setq org-agenda-files (file-expand-wildcards "~/Notes/*.org"))
Cameron, use something like the above for a system-wide setting, or something
like this for a change just for some custom view:
#+begin_src emacs-lisp
("p" "Tasks in my personal realm"
alltodo ""
((org-agenda-files
'("~/Personal/TODO.org"))))
#+end_src
Best regards,
Seb
--
Sebastien Vauban