From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Specifying a template when calling org-capture Date: Mon, 8 Nov 2010 11:20:01 -0600 Message-ID: <2ABC3151-0CA9-4BFD-A992-2141745391A6@gmail.com> References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=49797 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PFVO3-0007r2-50 for emacs-orgmode@gnu.org; Mon, 08 Nov 2010 12:20:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PFVO1-00035d-6P for emacs-orgmode@gnu.org; Mon, 08 Nov 2010 12:20:06 -0500 Received: from mail-gy0-f169.google.com ([209.85.160.169]:63778) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PFVO1-00035O-3f for emacs-orgmode@gnu.org; Mon, 08 Nov 2010 12:20:05 -0500 Received: by gyd8 with SMTP id 8so3883905gyd.0 for ; Mon, 08 Nov 2010 09:20:04 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nathan Neff Cc: emacs-orgmode On Nov 8, 2010, at 10:48 AM, Nathan Neff wrote: > Hello, > > Most of the time, I call the same template when calling org-capture. > > I'd like to define a key to call the template without going to the > menu. > > I found the documentation where it says > > "Lisp programs can set KEYS to a string associated with a template in > `org-capture-templates'. In this case, interactive selection will be > bypassed." > > I've tried several attempts at calling org-capture and specifying > KEYS, but haven't > gotten it to work. The method signature is > > (org-capture &optional GOTO KEYS) > > Here's my attempts, my template's hotkey is "t" > > (call-interactively (org-capture nil "t")) ;; doesn't work > > (org-capture nil 't) ;; doesn't work You need (org-capture nil "t") - Carsten > > Can anyone tell me how to specify the KEYS argument correctly to the > org-capture function? > > Thanks, > --Nate > > Thanks, > --Nate > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode