From: Paul Holcomb <pholcomb@cpoint.net>
To: emacs-orgmode@gnu.org
Subject: Re: suggestion: automatically recording entry creation date
Date: Fri, 20 Nov 2009 14:21:17 -0600 [thread overview]
Message-ID: <20091120202117.GV18489@cpoint.net> (raw)
In-Reply-To: <20091104125919.GC18202@atlantic.linksys.moosehall>
On Wed, Nov 04, 2009 at 12:59:19PM +0000, Adam Spiers wrote:
> > Bernt's approach is nice, but I agree that a completely clutter-free
> > solution (i.e. :PROPERTIES: drawers completely hidden by default)
> > would be extremely nice.
>
> I suspect this might be tricky to implement :-/
I ended up combining Bernt's and Tim's approaches. The below adds a
CREATED timestamp in both remember items and buffer-added items.
--
;; added "created" type
(setq org-log-note-headings
'((done . "CLOSING NOTE %t")
(state . "State %-12s from %-12S %t")
(note . "Note taken on %t")
(reschedule . "Rescheduled from %S on %t")
(redeadline . "New deadline from %S on %t")
(created . "CREATED %t")
(clock-out . "")))
;; for TODOs created in the buffer
(defun pah/insert-creation-date ()
"Insert CREATED timestamp into logbook"
(org-add-log-setup 'created nil nil 'findpos
'time))
(add-hook 'org-insert-heading-hook 'pah/insert-creation-date)
;; for remember
(setq org-remember-templates (quote (("todo" ?t "* TODO %?\n :LOGBOOK:\n - CREATED:%U\n :END:\n" nil bottom nil)
--
Is there a way to get this function to work with remember as well? I
tried adding to org-remember-before-finalize-hook, but the marker is
in a weird state at that point.
--
Paul Holcomb *pholcomb \@ cpoint net*
GPG key fingerprint 2B62 05AE EE74 845A 705F D716 28C4 FE1C 088F CFAC
next prev parent reply other threads:[~2009-11-20 20:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-31 2:13 suggestion: automatically recording entry creation date Ilya Shlyakhter
2009-10-31 4:57 ` Bernt Hansen
2009-11-03 0:01 ` Adam Spiers
2009-11-03 12:24 ` Tim O'Callaghan
2009-11-04 12:59 ` Adam Spiers
2009-11-20 20:21 ` Paul Holcomb [this message]
2009-11-21 20:01 ` Jason Dunsmore
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=20091120202117.GV18489@cpoint.net \
--to=pholcomb@cpoint.net \
--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).