Kyle Meyer <k...@kyleam.com> writes: > Hi Bastien, > > Bastien <b...@gnu.org> wrote: >> Hi Kyle, >> >> Kyle Meyer <k...@kyleam.com> writes: >> >>> `org-iswitchb' is restricted to open buffers, but the function below >>> should have the behavior you want. >>> >>> #+begin_src elisp >>> (defun org-open-agenda-file () >>> (interactive) >>> (find-file (org-icompleting-read "Agenda file: " org-agenda-files))) >>> #+end_src >> >> (Yes, provided `org-agenda-files' contains only files and not >> directories.) > > Yes, that's a good point. > > Thanks
I occasionally wanted to have Org "preloaded", so that right after starting emacs I could go to Org files, or run an agenda command with all the tags and TODO keywords present for completion. It turned out to be pretty simple: (defun my-preload-org () (interactive) (org-agenda-prepare-buffers (org-agenda-files))) Which I add to the after-init-hook. Seems to work just fine. Eric