From: Carsten Dominik <dominik@uva.nl>
To: Eric S Fraga <e.fraga@ucl.ac.uk>, org-mode list <emacs-orgmode@gnu.org>
Subject: Re: Subject: Use of date trees in Capture has been modified
Date: Thu, 16 Mar 2017 11:10:35 +0100 [thread overview]
Message-ID: <CADn3Z2JHBPosOby-yXdQ7if6ME4NfGDEb=iDnWL_xHp3VpbgrQ@mail.gmail.com> (raw)
In-Reply-To: <87wpbp36ih.fsf@delle7240>
[-- Attachment #1: Type: text/plain, Size: 1874 bytes --]
Hi Eric,
On Thu, Mar 16, 2017 at 10:39 AM, Eric S Fraga <e.fraga@ucl.ac.uk> wrote:
> On Thursday, 16 Mar 2017 at 07:55, Carsten Dominik wrote:
> > Dear all,
> >
> > I have just pushed (to master) a patch that modifies the use
> > of date trees in capture templates.
>
> [...]
>
> > For the time being, the old targets will be automatically translated
> > and used correctly. When you use customize to change
> > org-capture-templates, things will automatically be updated next time
> > you change the variable. The recommendation is to go and update your
> > templates, in case at some time in the future, we might remove the
> > compatibility layer.
>
> Carsten,
>
> would you please post an example of the new format for those that don't
> use customize for capture templates? An example equivalent to the
> current behaviour would be welcome.
>
> For instance, my current diary appointment capture entry looks like this:
>
> ("d" "diary" entry
> (file+datetree "~/s/notes/diary.org")
> "* %^{Appointment} %^G\n%^{Date + time}T"
> :immediate-finish t)
>
This case turns into
("d" "diary" entry
(file+olp+datetree "~/s/notes/diary.org")
"* %^{Appointment} %^G\n%^{Date + time}T"
:immediate-finish t)
so you only need to change the symbol from file+datetree to
file+olp+datetree
If you were using a week tree, the symbol you'd still use file+olp+datetree
but also set the property
:tree-type week
If you are using one of the ....+prompt version, you would instead set the
property
:time-prompt t
That is all.
If you want to specify an outline path, these are just additional strings
after the file name, for example
("d" "diary" entry
(file+olp+datetree "~/s/notes/diary.org" "Heading 1" "Subheading"
"subsubheading")
"* %^{Appointment} %^G\n%^{Date + time}T"
:immediate-finish t)
Does that answer your question?
Carsten
[-- Attachment #2: Type: text/html, Size: 3129 bytes --]
next prev parent reply other threads:[~2017-03-16 10:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <59779b8073fa4f0683216c82e6ec9cce@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-03-16 9:39 ` Subject: Use of date trees in Capture has been modified Eric S Fraga
2017-03-16 10:10 ` Carsten Dominik [this message]
[not found] ` <b855abbe7ad14fcfbd3f76767d8a4a0b@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-03-16 19:12 ` Eric S Fraga
2017-03-16 7:55 Carsten Dominik
2017-03-16 8:34 ` Alan Schmitt
2017-03-16 11:41 ` Carsten Dominik
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CADn3Z2JHBPosOby-yXdQ7if6ME4NfGDEb=iDnWL_xHp3VpbgrQ@mail.gmail.com' \
--to=dominik@uva.nl \
--cc=e.fraga@ucl.ac.uk \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.