From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: Re: Command to open up any agenda file? Date: Mon, 01 Sep 2014 16:43:34 -0400 Message-ID: <87zjejcbrd.fsf@kmlap.domain.org> References: <87mwaj2jag.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55524) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOYQr-0004sd-4G for emacs-orgmode@gnu.org; Mon, 01 Sep 2014 16:42:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XOYQg-00041j-FF for emacs-orgmode@gnu.org; Mon, 01 Sep 2014 16:42:33 -0400 Received: from mail-qg0-f47.google.com ([209.85.192.47]:55754) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOYQg-00041J-B9 for emacs-orgmode@gnu.org; Mon, 01 Sep 2014 16:42:22 -0400 Received: by mail-qg0-f47.google.com with SMTP id z60so5564025qgd.20 for ; Mon, 01 Sep 2014 13:42:21 -0700 (PDT) In-Reply-To: <87mwaj2jag.fsf@gmail.com> (Thorsten Jolitz's message of "Mon, 01 Sep 2014 22:11:03 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Thorsten Jolitz , Noah Slater Cc: emacs-orgmode@gnu.org Thorsten Jolitz wrote: > Noah Slater writes: > > Hello, > >> I quite like C-c b (org-iswitchb) but it only works if the file is >> already open. What I really want is a command that lets me tab >> complete any agenda file at all. Does such a thing exist? I couldn't >> find it in the docs. > > don't know if this exists in Org, but defining you agenda-files as a > project you might be able to use projectile: 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