I would define a function for this, so you can call it only when you want.
this does what you describe for me (org 8.2.10)

(defun my-heading ()
  (interactive)
  (org-insert-heading)
  (org-id-get-create)

  (save-excursion ;-> add time stamp
    (org-end-of-meta-data-and-drawers)
    (newline)
    (org-time-stamp-inactive '(16))))



On Sat, Jan 16, 2016 at 8:14 AM, Bingo UV <right...@gmail.com> wrote:

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



John

-----------------------------------
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu

Reply via email to