mirror of
https://github.com/doomemacs/doomemacs.git
synced 2025-12-30 13:51:29 -08:00
Doom replaces `org-insert-heading`, but its replacement does not respect
`org-insert-heading-hook`. This commit fixes that, enabling folks to
customize their insert-heading behavior, e.g. adding a time stamp:
(defun my/org-set-creation-date-heading-property ()
(save-excursion
(org-back-to-heading)
(org-set-property "CREATED" (format-time-string "[%Y-%m-%d %T]"))))
(add-hook 'org-insert-heading-hook #'my/org-set-creation-date-heading-property)
Ref: https://git.savannah.gnu.org/cgit/emacs/org-mode.git/tree/lisp/org.el#n6187
Ref: https://git.savannah.gnu.org/cgit/emacs/org-mode.git/tree/lisp/org.el#n1615
|
||
|---|---|---|
| .. | ||
| contrib-ipython.el | ||
| contrib-present.el | ||
| contrib-roam2.el | ||
| org-attach.el | ||
| org-avy.el | ||
| org-babel.el | ||
| org-capture.el | ||
| org-export.el | ||
| org-link.el | ||
| org-refile.el | ||
| org-tables.el | ||
| org.el | ||