emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: org-agenda-files: using variables


From: Loris Bennett
Subject: Re: org-agenda-files: using variables
Date: Wed, 18 Jan 2023 07:55:35 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Hi Nick,

Nick Dokos <ndokos@gmail.com> writes:

> "Loris Bennett" <loris.bennett@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

[Prev in Thread] Current Thread [Next in Thread]