|
From: | John Kitchin |
Subject: | Re: [O] how to add some features in a newly added headline? |
Date: | Sat, 16 Jan 2016 08:59:17 -0500 |
(add-hook 'org-insert-heading-hook
'(lambda()
(org-id-get-create) ;-> Adds ID property
(insert-char 48) ;-> required for next 2 org-cycles to collapse the properties drawer
(org-cycle)
(org-cycle)
(save-excursion ;-> add time stamp
(org-end-of-meta-data t)
(org-time-stamp-inactive '(16))
(newline)
)
)
)
[Prev in Thread] | Current Thread | [Next in Thread] |