Hi, Jimi,
Jimi Damon <[email protected]> writes:
> I've been working on my org-capture-templates and I can't for the life
> of me figure out how to get multi-character templates defined.
(...)
> (setq org-capture-templates
> '(("t" "Todo" entry (file+headline "~/org/gtd.org" "Tasks")
> "* TODO %?\n %i\n %a")
> ("j" "Journal" entry (file+olp+datetree "~/org/journal.org")
> "* %?\nEntered on %U\n %i\n %a")
> ("Jk" "Foo" entry (file+olp+datetree "~/org/journal.org")
> "* %?\nEntered on %U\n %i\n %a")
> ))
I think you have two bugs.
1. You probably want a "jk" key but the "J" is capitalized.
2. You haven't set a "j" prefix.
>From the manual (info "(org) Template elements"):
When using several keys, keys using the same prefix key must be
sequential in the list and preceded by a 2-element entry explaining
the prefix key, for example:
("b" "Templates for marking stuff to buy")
Your "j" entry is a template, not a prefix key definition. You need to
add the definition and give that template a two-letter key instead (say,
"jj" for convenience). E.g.:
(setq org-capture-templates
'(("t" "Todo" entry (file+headline "~/org/gtd.org" "Tasks")
"* TODO %?\n %i\n %a")
("j" "Journal")
("jj" "Baz" entry (file+olp+datetree "~/org/journal.org")
"* %?\nEntered on %U\n %i\n %a")
("jk" "Foo" entry (file+olp+datetree "~/org/journal.org")
"* %?\nEntered on %U\n %i\n %a")
))
Regards,
Christian