* Smart node selection for org-remember-templates?
@ 2007-12-18 19:31 Adr3nal D0S
[not found] ` <e7cdbe30712181359w1c9652dch4794a72da6a8c778@mail.gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Adr3nal D0S @ 2007-12-18 19:31 UTC (permalink / raw)
To: emacs-orgmode
I have an org-mode file that I am using to log what I do at work. It
comes in very handy for my weekly and monthly reports. The basic
structure is like:
* 2007
** Dec
*** Tuesday 18
**** What I did #1
**** What I did #2
I recently started using remember with org-mode. Love it.
However, is it possible to setup an org-remember-template for entering
these items? I tried something like:
(setq org-remember-templates '((?l "**** %?" "path-to/worklog.org" "*** %t")))
Obviously %t isn't going to give me 'Tuesday 18'. But it was a first
attempt. What I didn't expect was a literal org-mode node named "%t".
Is what I am trying even possible with the current org-remember-templates?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Smart node selection for org-remember-templates?
[not found] ` <e7cdbe30712181359w1c9652dch4794a72da6a8c778@mail.gmail.com>
@ 2007-12-18 23:17 ` Adr3nal D0S
2008-01-07 6:52 ` Bastien
0 siblings, 1 reply; 3+ messages in thread
From: Adr3nal D0S @ 2007-12-18 23:17 UTC (permalink / raw)
To: Manish; +Cc: emacs-orgmode
On Dec 18, 2007 3:59 PM, Manish <mailtomanish.sharma@gmail.com> wrote:
>
> On Dec 19, 2007 1:01 AM, Adr3nal D0S <adr3nald0s@gmail.com> wrote:
> >
> > * 2007
> > ** Dec
> > *** Tuesday 18
> > **** What I did #1
> > **** What I did #2
> > (setq org-remember-templates '((?l "**** %?" "path-to/worklog.org" "*** %t")))
> If I understood it correctly, then you aren't really using Org's todo
> functionality rather using it as a plain chronological journal. Using
> journal template instead of a todo template to file in something like
> journal.org could serve your purpose probably.
>
> Something along these lines perhaps. This will file your note under
> JOURNAL heading in ~/org/journal.org file.
>
> (setq org-remember-templates (quote
> (("Journal" 106 "* JOURNAL %U %?
> %a" "~/org/journal.org" "Journal")
> )))
That's not much different than what I tried before posting the original e-mail.
I would like to be able to control the format of the date that is
inserted. Furthermore, I would like to be able to specify a hierarchy
that the entry should exist in and create it if it does not.
Using the org-mode snippet above, I would like "** Dec" to be created
if it does not exist and so on up the hierarchy.
Does that clarify what I am looking for?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Smart node selection for org-remember-templates?
2007-12-18 23:17 ` Adr3nal D0S
@ 2008-01-07 6:52 ` Bastien
0 siblings, 0 replies; 3+ messages in thread
From: Bastien @ 2008-01-07 6:52 UTC (permalink / raw)
To: Adr3nal D0S; +Cc: emacs-orgmode
"Adr3nal D0S" <adr3nald0s@gmail.com> writes:
> I would like to be able to control the format of the date that is
> inserted.
If you want to insert timestamps in templates other than those inserted
by %t and %T, you can use the %(sexp) format:
%(format-time-string "%d/%m/%Y/")
Replace "%d/%m/%Y" by your format.
HTH,
--
Bastien
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-01-07 6:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-18 19:31 Smart node selection for org-remember-templates? Adr3nal D0S
[not found] ` <e7cdbe30712181359w1c9652dch4794a72da6a8c778@mail.gmail.com>
2007-12-18 23:17 ` Adr3nal D0S
2008-01-07 6:52 ` Bastien
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).