Hi Nick,

Nick Dokos <ndo...@gmail.com> writes:

> "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")

Thanks, in particular also for the link to the relevant documentation.

Cheers,

Loris

-- 
This signature is currently under constuction.

Reply via email to