lang/org: +org|update => +org|update-cookies

This commit is contained in:
Henrik Lissner 2017-02-20 00:44:59 -05:00
parent e0e865613c
commit 7835a6986b

View file

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