From: Alan Schmitt <alan.schmitt@polytechnique.org>
To: Xebar Saram <zeltakc@gmail.com>
Cc: org mode <emacs-orgmode@gnu.org>
Subject: Re: [feature request] org-capture-window-setup to stop capture window taking up whole frame
Date: Thu, 18 Jun 2015 16:42:54 +0200 [thread overview]
Message-ID: <m2mvzxkrgx.fsf@polytechnique.org> (raw)
In-Reply-To: <CAOQHXPoDWBEePQQc8g4LGZxWs0CpmaO21bMKaXjs8e-Hu8mVQg@mail.gmail.com> (Xebar Saram's message of "Thu, 18 Jun 2015 14:52:01 +0300")
[-- Attachment #1: Type: text/plain, Size: 1623 bytes --]
On 2015-06-18 13:52, Xebar Saram <zeltakc@gmail.com> 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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]
next prev parent reply other threads:[~2015-06-18 14:43 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-08 15:23 [feature request] org-capture-window-setup to stop capture window taking up whole frame Eric S Fraga
2015-06-08 16:37 ` Charles Millar
2015-06-08 16:46 ` Kaushal
2015-06-09 7:31 ` e.fraga
2015-06-17 8:24 ` Eric S Fraga
2015-06-17 16:41 ` Subhan Michael Tindall
2015-06-18 7:57 ` Eric S Fraga
2015-06-23 20:31 ` Nicolas Goaziou
2015-06-25 8:00 ` Eric S Fraga
2015-06-25 12:22 ` Nicolas Goaziou
2015-06-08 20:28 ` Thierry Banel
2015-06-09 9:22 ` Alan Schmitt
2015-06-09 9:43 ` Eric S Fraga
2015-06-18 11:16 ` Xebar Saram
2015-06-18 11:45 ` Alan Schmitt
2015-06-18 11:52 ` Xebar Saram
2015-06-18 14:42 ` Alan Schmitt [this message]
[not found] ` <871thlw193.fsf@gmail.com>
2015-06-09 12:35 ` Bernhard Pröll
2015-06-12 9:27 ` Eric S Fraga
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=m2mvzxkrgx.fsf@polytechnique.org \
--to=alan.schmitt@polytechnique.org \
--cc=emacs-orgmode@gnu.org \
--cc=zeltakc@gmail.com \
/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).