Re: [O] Make org-iswitchb see all agenda files (not only opened ones)
Florian Lindner mailingli...@xgm.de wrote: Hello, can I make org-iswitchb consider not only already opened files but all agenda files, just like org-agenda? I tried one and two prefix arguments, but org-iswitchb always considers only files that are already opened. `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 -- Kyle
Re: [O] Make org-iswitchb see all agenda files (not only opened ones)
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.) -- Bastien
Re: [O] Make org-iswitchb see all agenda files (not only opened ones)
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 -- Kyle
Re: [O] Make org-iswitchb see all agenda files (not only opened ones)
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