* help with capture template
@ 2011-09-14 10:58 Renato
2011-09-14 11:35 ` Christian Moe
0 siblings, 1 reply; 3+ messages in thread
From: Renato @ 2011-09-14 10:58 UTC (permalink / raw)
To: Org Mode
Hello, I have a computer.org file with this structure:
* Log
** [2011-09-12 Mon 17:34] update ...
** [2011-09-07 Wed 18:09] update ...
** TODO [2011-09-04 Sun 20:23] nouveau + pm-suspend -> black tty :bug:
I've been adding entries manually up to now. However I'd like to use
capture to make adding entries easier. I have this template:
("l" "System Log" entry (file+headline "~/Documents/org/computer.org"
"Log") "* %U %? \n %i\n")
which works, the only problem is that the entry gets added at the *bottom*
of the other level 2 headers, while I'd want it to be at the top
(such that the top entry is the latest date).
Any help on how I could modify the template?
cheers
renato
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: help with capture template
2011-09-14 10:58 help with capture template Renato
@ 2011-09-14 11:35 ` Christian Moe
2011-09-14 15:19 ` Renato
0 siblings, 1 reply; 3+ messages in thread
From: Christian Moe @ 2011-09-14 11:35 UTC (permalink / raw)
To: Renato; +Cc: Org Mode
Hi,
Try setting the :prepend property:
("l" "System Log" entry (file+headline "~/Documents/org/computer.org"
"Log") "* %U %? \n %i\n" :prepend t)
hth,
Christian
On 9/14/11 12:58 PM, Renato wrote:
> Hello, I have a computer.org file with this structure:
>
> * Log
> ** [2011-09-12 Mon 17:34] update ...
> ** [2011-09-07 Wed 18:09] update ...
> ** TODO [2011-09-04 Sun 20:23] nouveau + pm-suspend -> black tty :bug:
>
> I've been adding entries manually up to now. However I'd like to use
> capture to make adding entries easier. I have this template:
>
> ("l" "System Log" entry (file+headline "~/Documents/org/computer.org"
> "Log") "* %U %? \n %i\n")
>
> which works, the only problem is that the entry gets added at the *bottom*
> of the other level 2 headers, while I'd want it to be at the top
> (such that the top entry is the latest date).
>
> Any help on how I could modify the template?
>
> cheers
> renato
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-09-14 15:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-14 10:58 help with capture template Renato
2011-09-14 11:35 ` Christian Moe
2011-09-14 15:19 ` Renato
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.