Hello Nick,

On 2020-11-16 16:33, Nick Dokos <ndo...@gmail.com> writes:

> Just guessing at this point, I would imagine you'd want something like
> this:
>
> --8<---------------cut here---------------start------------->8---
> (defun path-from-link (link)
>    (org-element-property :path link))
>
> (setq org-agenda-files (with-current-buffer
>                          (find-file-noselect "master.org")
>                          (org-element-map (org-element-parse-buffer)
>                                           '(link)
>                                           #'path-from-link)))
> --8<---------------cut here---------------end--------------->8---

Thanks a lot, this is most useful! I did not think it could be this
simple.

Best,

Alan

Attachment: signature.asc
Description: PGP signature

Reply via email to