The evil-insert-state hooks were added upstream in doom-modeline.
This commit is contained in:
Henrik Lissner 2019-03-04 14:08:25 -05:00
parent b98f34d1fd
commit 1a4db744e3
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -72,9 +72,7 @@
;; modified state, so we try to force them to behave. ;; modified state, so we try to force them to behave.
(defun +modeline*inhibit-modification-hooks (orig-fn &rest args) (defun +modeline*inhibit-modification-hooks (orig-fn &rest args)
(with-silent-modifications (apply orig-fn args))) (with-silent-modifications (apply orig-fn args)))
(advice-add #'ws-butler-after-save :around #'+modeline*inhibit-modification-hooks) (advice-add #'ws-butler-after-save :around #'+modeline*inhibit-modification-hooks))
(add-hook 'evil-insert-state-exit-hook #'doom-modeline-update-buffer-file-name)
(add-hook 'evil-insert-state-exit-hook #'doom-modeline-update-buffer-file-state-icon))
;; ;;