emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kyle Meyer <kyle@kyleam.com>
To: "tenspd137 ." <dcday137@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-capture-templates with multi charachter keys
Date: Fri, 02 Oct 2015 16:30:17 -0400	[thread overview]
Message-ID: <87bnchggiu.fsf@kyleam.com> (raw)
In-Reply-To: <CAB=m8wKkMXEjx_W9P34-wj+cdYPNJxL_tZK97CJ2KqzvLrVw3Q@mail.gmail.com> (tenspd's message of "Fri, 2 Oct 2015 14:06:26 -0600")

Hello,

"tenspd137 ." <dcday137@gmail.com> writes:

> (setq org-capture-templates
>       '(("t" "Todo" entry (file+headline (concat org-directory
> "/default.org") "Tasks")
>          "* TODO %?\n %i\n %a")
>         ("j" "Journal" entry (file+datetree (concat org-directory
> "/journal.org"))
>          "* %?\nEntered on %U\n  %i\n  %a")
>         ;;product stuff - I would like to move these to files and have
>         ;;them loaded - maybe in the future
>         ("bf" "Bluefin Todo" entry (file+headline (concat
> org-directory "/bluefin.org") "Tasks")
>          "* TODO %?\n %i\n %a")))
>
> the last one I am using "bf" as a key.  When I go to use org capture,
> the following is shown in the menu
>
> Select a capture template
> ===================
>
> [t] Todo
> [j] Journal
> [bf] Bluefin Todo
> ----------------------------------------
> [C] Customize org-capture-templates
> [q]  Abort
>
> but when I hit b (as in bf), the mini-buffer just says invalid key `b'
>
> How do I use multiple keys?

I think you're missing this bit from org-capture-templates's docstring:

    When using several keys, keys using the same prefix key must be
    together in the list and preceded by a 2-element entry explaining
    the prefix key, for example

            ("b" "Templates for marking stuff to buy")


--
Kyle

  reply	other threads:[~2015-10-02 20:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-02 20:06 org-capture-templates with multi charachter keys tenspd137 .
2015-10-02 20:30 ` Kyle Meyer [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-01-18 13:28 Roland Everaert
2017-01-18 14:02 ` Marco Wahl

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=87bnchggiu.fsf@kyleam.com \
    --to=kyle@kyleam.com \
    --cc=dcday137@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).