emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nathan Neff <nathan.neff@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Specifying a template when calling org-capture
Date: Mon, 8 Nov 2010 10:48:14 -0600	[thread overview]
Message-ID: <AANLkTim8C7COkk-SSrw0+hsBq_ZHo8Vk7ZnoVBi=jZ7k@mail.gmail.com> (raw)

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

             reply	other threads:[~2010-11-08 16:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-08 16:48 Nathan Neff [this message]
2010-11-08 17:20 ` Specifying a template when calling org-capture Carsten Dominik

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTim8C7COkk-SSrw0+hsBq_ZHo8Vk7ZnoVBi=jZ7k@mail.gmail.com' \
    --to=nathan.neff@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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 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).