lang/org: +org|update => +org|update-cookies
This commit is contained in:
parent
e0e865613c
commit
7835a6986b
1 changed files with 3 additions and 3 deletions
|
@ -57,13 +57,13 @@
|
|||
(outline-previous-visible-heading 1)
|
||||
(org-show-subtree))))
|
||||
|
||||
(defun +org|update ()
|
||||
(defun +org|update-cookies ()
|
||||
"Update counts on headlines (\"cookies\")."
|
||||
(when (file-exists-p buffer-file-name)
|
||||
(org-update-statistics-cookies t)))
|
||||
|
||||
(add-hook 'before-save-hook '+org|update nil t)
|
||||
(add-hook 'evil-insert-state-exit-hook '+org|update nil t))
|
||||
(add-hook 'before-save-hook '+org|update-cookies nil t)
|
||||
(add-hook 'evil-insert-state-exit-hook '+org|update-cookies nil t))
|
||||
|
||||
|
||||
(defun +org|init ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue