Kyle Meyer <k...@kyleam.com> wrote: [...] > I don't know of any Org function that does this either (and, as > suggested, I prefer projectile for this), but if you just want a single > function, I think it could be as simple as this: > > #+begin_src elisp > (defun find-org-agenda-file (file) > (interactive (list (org-completing-read "Agenda file: " > (org-agenda-files)))) > (find-file file)) > #+end_src
Oops, I'd actually change that to this (although the interactive behavior is the same). #+begin_src elisp (defun find-org-agenda-file () (interactive) (find-file (org-completing-read "Agenda file: " (org-agenda-files)))) #+end_src