From: Kyle Meyer <kyle@kyleam.com>
To: Thorsten Jolitz <tjolitz@gmail.com>
Cc: Noah Slater <nslater@apache.org>, emacs-orgmode@gnu.org
Subject: Re: Command to open up any agenda file?
Date: Mon, 01 Sep 2014 16:58:53 -0400 [thread overview]
Message-ID: <87vbp7cb1u.fsf@kmlap.domain.org> (raw)
In-Reply-To: <87zjejcbrd.fsf@kmlap.domain.org> (Kyle Meyer's message of "Mon, 01 Sep 2014 16:43:34 -0400")
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
next prev parent reply other threads:[~2014-09-01 20:57 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 [this message]
2014-09-02 12:11 ` Noah Slater
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=87vbp7cb1u.fsf@kmlap.domain.org \
--to=kyle@kyleam.com \
--cc=emacs-orgmode@gnu.org \
--cc=nslater@apache.org \
--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.