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
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
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))