Minor refactoring/reformatting across the board

This commit is contained in:
Henrik Lissner
2019-10-31 14:35:07 -04:00
parent 3930a23084
commit 0b8e7a27b6
4 changed files with 10 additions and 10 deletions

View File

@@ -437,6 +437,6 @@ unfold to point on startup."
;;;###autoload
(defun +org-enable-auto-update-cookies-h ()
"Update statistics cookies when saving or exiting insert mode (`evil-mode')."
(when (featurep 'evil)
(when (bound-and-true-p evil-local-mode)
(add-hook 'evil-insert-state-exit-hook #'+org-update-cookies-h nil t))
(add-hook 'before-save-hook #'+org-update-cookies-h nil t))