[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Make org-iswitchb see all agenda files (not only opened ones)
From: |
Kyle Meyer |
Subject: |
Re: [O] Make org-iswitchb see all agenda files (not only opened ones) |
Date: |
Wed, 28 May 2014 11:09:23 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Florian Lindner <address@hidden> 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