mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
lang/org: +org|update => +org|update-cookies
This commit is contained in:
@ -57,13 +57,13 @@
|
|||||||
(outline-previous-visible-heading 1)
|
(outline-previous-visible-heading 1)
|
||||||
(org-show-subtree))))
|
(org-show-subtree))))
|
||||||
|
|
||||||
(defun +org|update ()
|
(defun +org|update-cookies ()
|
||||||
"Update counts on headlines (\"cookies\")."
|
"Update counts on headlines (\"cookies\")."
|
||||||
(when (file-exists-p buffer-file-name)
|
(when (file-exists-p buffer-file-name)
|
||||||
(org-update-statistics-cookies t)))
|
(org-update-statistics-cookies t)))
|
||||||
|
|
||||||
(add-hook 'before-save-hook '+org|update nil t)
|
(add-hook 'before-save-hook '+org|update-cookies nil t)
|
||||||
(add-hook 'evil-insert-state-exit-hook '+org|update nil t))
|
(add-hook 'evil-insert-state-exit-hook '+org|update-cookies nil t))
|
||||||
|
|
||||||
|
|
||||||
(defun +org|init ()
|
(defun +org|init ()
|
||||||
|
Reference in New Issue
Block a user