On 2015-06-18 13:52, Xebar Saram <[email protected]> writes: > thx again Alan > > i do get an error if i eval (org-capture nil "t") > the error is: > > Debugger entered--Lisp error: (error "No capture template referred to by \"t\" > keys")
Yes: you need to define a capture template with that key. Here are my
capture templates, for instance
#+begin_src emacs-lisp
(setq org-capture-templates
(quote
(("t" "todo" entry (file "refile-orgx.org")
"* TODO %?\n %U")
("T" "todo with link" entry (file "refile-orgx.org")
"* TODO %?\n %U\n\n%a")
("r" "Reply" entry (file "refile-orgx.org")
"* TODO Reply to %:fromname about %:subject\n%?Received on
%:date-timestamp-inactive, link: %a")
("w" "Wait for reply" entry (file "refile-orgx.org")
"* WAITING reply from %:to about %:subject\n%?Sent on
%:date-timestamp-inactive, link: %a")
("o" "Old Journal" entry (file+datetree+prompt "diary-runx.org")
"* %i%?\n%u\n")
("O" "Old Journal with link" entry (file+datetree+prompt
"diary-runx.org")
"* %i%?\n%u\n%a\n")
("j" "Journal" entry (file+datetree "diary-runx.org")
"* %i%?\nEntered on %U\n")
("J" "Journal with link" entry (file+datetree "diary-runx.org")
"* %i%?\nEntered on %U\n%a\n")
("i" "Store link in offline" plain (file "urls-offline.org")
"%l"))))
#+end_src
You need to adapt this to your needs, of course.
Alan
--
OpenPGP Key ID : 040D0A3B4ED2E5C7
Weekly CO₂ average (2015-05-30, Mauna Loa Observatory): 403.41 ppm
signature.asc
Description: PGP signature
