[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Command to open up any agenda file?

From: Noah Slater
Subject: Re: [O] Command to open up any agenda file?
Date: Tue, 2 Sep 2014 14:11:45 +0200


Ooh, thanks! Any way to get it so I don't have to TAB complete the
leading path? Sort of how like org-iswitchb lets me just type in "Fo"
and then tab complete to "Foo.org" without
"/Users/nslater/Documents/Org" or whatever being prepended?

On 1 September 2014 22:58, Kyle Meyer <address@hidden> wrote:
> Kyle Meyer <address@hidden> 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

Noah Slater

reply via email to

[Prev in Thread] Current Thread [Next in Thread]