[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [feature request] org-capture-window-setup to stop capture windo
From: |
Alan Schmitt |
Subject: |
Re: [O] [feature request] org-capture-window-setup to stop capture window taking up whole frame |
Date: |
Thu, 18 Jun 2015 16:42:54 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) |
On 2015-06-18 13:52, Xebar Saram <address@hidden> 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
- Re: [O] [feature request] org-capture-window-setup to stop capture window taking up whole frame, (continued)
Re: [O] [feature request] org-capture-window-setup to stop capture window taking up whole frame, Thierry Banel, 2015/06/08
Re: [O] [feature request] org-capture-window-setup to stop capture window taking up whole frame, Alan Schmitt, 2015/06/09
Message not available