From: Suvayu Ali <fatkasuvayu+linux@gmail.com>
To: emacs-org <emacs-orgmode@gnu.org>
Subject: empty lines in datetree capture templates
Date: Tue, 28 Dec 2010 00:50:00 -0800 [thread overview]
Message-ID: <20101228005000.1ce74e0f@bhishma.homelinux.net> (raw)
Hi everyone,
I am having some problems with a capture template for datetrees.
(setq org-capture-templates
'(("m" "Select meeting templates")
("ms" "Schedule a meeting" entry (file+headline "~/org/meetings.org" "Meetings")
"** %? %^t%^{CATEGORY}p\n"
:empty-lines 1)
("mm" "Meeting minutes w/ clock" entry (file+datetree "~/org/meetings.org")
"**** %^{prompt} %U%^{CATEGORY}p\n\n %?"
:prepend t :clock-in :empty-lines 1 :immediate-finish)
))
I prefer to have empty lines between two headlines and headlines and
text. When I use the above "Meeting minutes w/ clock" template, the new
entry to the date tree is inserted as below despite the ":empty-lines 1"
argument. If I try to end the older entry with a blank line, the empty
like is removed and the new entry is placed like this again.
Any one knows what I am doing wrong? Thank you in advance,
e.g. entry from above template
* 2010
** 2010-12 December
*** 2010-12-16 Thursday
**** Some meeting [2010-12-16 Thu] :tag1:
:PROPERTIES:
:CATEGORY: bla
:END:
1. some notes
2. and pointers
<-- I am expecting an empty line here -->
*** 2010-12-28 Tuesday
<-- and preferably here too -->
**** Some new meeting [2010-12-28 Tue 00:34]
:LOGBOOK:
CLOCK: [2010-12-28 Tue 00:34]--[2010-12-28 Tue 00:35] => 0:01
:END:
:PROPERTIES:
:CATEGORY: test
:END:
+ some pointers
+ some thoughts
--
Suvayu
Open source is the future. It sets us free.
next reply other threads:[~2010-12-28 8:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-28 8:50 Suvayu Ali [this message]
2011-01-09 14:31 ` empty lines in datetree capture templates David Maus
2011-01-09 18:05 ` Suvayu Ali
2011-01-11 19:58 ` Carsten Dominik
2011-01-11 20:37 ` Suvayu Ali
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=20101228005000.1ce74e0f@bhishma.homelinux.net \
--to=fatkasuvayu+linux@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).