From: Noah Slater <nslater@apache.org>
To: Kyle Meyer <kyle@kyleam.com>
Cc: emacs-orgmode@gnu.org, Noah Slater <nslater@apache.org>,
Thorsten Jolitz <tjolitz@gmail.com>
Subject: Re: Command to open up any agenda file?
Date: Tue, 2 Sep 2014 14:11:45 +0200 [thread overview]
Message-ID: <CAPaJBx5Hmn2SV7s8ePw9eyiY7_-Y8L5yU5sw060Cj3-9rLdDuQ@mail.gmail.com> (raw)
In-Reply-To: <87vbp7cb1u.fsf@kmlap.domain.org>
Kyle,
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 <kyle@kyleam.com> wrote:
> Kyle Meyer <kyle@kyleam.com> 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
https://twitter.com/nslater
next prev parent reply other threads:[~2014-09-02 12:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-01 19:59 Command to open up any agenda file? Noah Slater
2014-09-01 20:11 ` Thorsten Jolitz
2014-09-01 20:43 ` Kyle Meyer
2014-09-01 20:58 ` Kyle Meyer
2014-09-02 12:11 ` Noah Slater [this message]
2014-09-02 15:20 ` Kyle Meyer
2014-09-03 10:03 ` Eric S Fraga
2014-09-02 1:55 ` Eric Abrahamsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAPaJBx5Hmn2SV7s8ePw9eyiY7_-Y8L5yU5sw060Cj3-9rLdDuQ@mail.gmail.com \
--to=nslater@apache.org \
--cc=emacs-orgmode@gnu.org \
--cc=kyle@kyleam.com \
--cc=tjolitz@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.