Use properties instead of timestamps for Org headings

This commit is contained in:
contrapunctus 2022-01-04 04:20:47 +05:30
parent 83f7432f83
commit 469eeda81f
1 changed files with 1 additions and 1 deletions

View File

@ -3099,7 +3099,7 @@ BUG - improper behaviour with checkboxes.
#+BEGIN_SRC emacs-lisp
(defun contrapunctus-org-insert-timestamp ()
(save-excursion
(insert "\n" "<" (format-time-string "%FT%T%z") ">")))
(org-set-property "CREATED" (format-time-string "%FT%T%z"))))
(add-hook 'org-insert-heading-hook #'contrapunctus-org-insert-timestamp)
(use-package org-indent