* Specifying a template when calling org-capture
@ 2010-11-08 16:48 Nathan Neff
2010-11-08 17:20 ` Carsten Dominik
0 siblings, 1 reply; 2+ messages in thread
From: Nathan Neff @ 2010-11-08 16:48 UTC (permalink / raw)
To: emacs-orgmode
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
Can anyone tell me how to specify the KEYS argument correctly to the
org-capture function?
Thanks,
--Nate
Thanks,
--Nate
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Specifying a template when calling org-capture
2010-11-08 16:48 Specifying a template when calling org-capture Nathan Neff
@ 2010-11-08 17:20 ` Carsten Dominik
0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2010-11-08 17:20 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-11-08 17:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-08 16:48 Specifying a template when calling org-capture Nathan Neff
2010-11-08 17:20 ` Carsten Dominik
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).