[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: |
Eric Abrahamsen |
Subject: |
Re: [O] Make org-iswitchb see all agenda files (not only opened ones) |
Date: |
Thu, 29 May 2014 10:58:01 +0800 |
User-agent: |
Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux) |
Kyle Meyer <address@hidden> writes:
> Hi Bastien,
>
> Bastien <address@hidden> wrote:
>> Hi Kyle,
>>
>> Kyle Meyer <address@hidden> 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