emacs-orgmode
[Top][All Lists]
Advanced

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

Re: add linked files to agenda files


From: Alan Schmitt
Subject: Re: add linked files to agenda files
Date: Tue, 17 Nov 2020 08:52:37 +0100

Hello Nick,

On 2020-11-16 16:33, Nick Dokos <ndokos@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

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