"Loris Bennett" <loris.benn...@fu-berlin.de> writes: > Hi, > > I have > > (setq lb/org-directory "~/org/")) > (setq lb/gtd-file (expand-file-name "gtd.org" lb/org-directory)) > (setq lb/refile-file (expand-file-name "refile.org" lb/org-directory)) > (setq org-agenda-files '(lb/gtd-file lb/refile-file)) > > But generating the agenda fails with > > Wrong type argument: stringp, lb/gtd-file > > What is the correct syntax to use the variables in the list? >
Quoting quotes everything including symbols, so you either do not quote or use backquote: (setq org-agenda-files (list lb/gtd-file lb/refile-file)) (setq org-agenda-files `(,lb/gtd-file ,lb/refile-file)) In this case, I'd prefer the first form, but the second form is often useful - see (info "(elisp)Backquote") -- Nick