emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Insert UUID with org-insert-todo-heading
@ 2014-04-06 18:21 Esben Stien
  2014-04-06 23:39 ` John Kitchin
  0 siblings, 1 reply; 3+ messages in thread
From: Esben Stien @ 2014-04-06 18:21 UTC (permalink / raw)
  To: emacs-orgmode

I'm using the following to have a CREATED field in the PROPERTIES field
of a TODO: 

;; advice org-insert-todo-heading to insert a created timestamp using org-expiry
(defadvice org-insert-todo-heading (after mrb/created-timestamp-advice activate)
  "Insert a CREATED property using org-expiry.el for TODO entries"
  (mrb/insert-created-timestamp)
)
(ad-activate 'org-insert-todo-heading)

So, I get: 

**** TODO 
     :PROPERTIES:
     :CREATED:  [2014-04-06 sø. 20:11]
     :END:

Is there any way to insert a UUID as well?, like:

**** TODO 
     :PROPERTIES:
     :CREATED:  [2014-04-06 sø. 20:11]
     :UUID: 70f273b5-8bce-315f-6f31-6d9ec9a8b739
     :END:

Any pointers as to how I can achieve this?

-- 
Esben Stien is b0ef@e     s      a             
         http://www. s     t    n m
          irc://irc.  b  -  i  .   e/%23contact
           sip:b0ef@   e     e 
           jid:b0ef@    n     n

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-04-07 15:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-06 18:21 Insert UUID with org-insert-todo-heading Esben Stien
2014-04-06 23:39 ` John Kitchin
2014-04-07 15:22   ` Esben Stien

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).