From 1a4db744e3be7f9dd0da02fa6d0a721c94860caa Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 4 Mar 2019 14:08:25 -0500 Subject: [PATCH] Half-revert d587d116 The evil-insert-state hooks were added upstream in doom-modeline. --- modules/ui/modeline/config.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/ui/modeline/config.el b/modules/ui/modeline/config.el index 25dc9511d..6039006c7 100644 --- a/modules/ui/modeline/config.el +++ b/modules/ui/modeline/config.el @@ -72,9 +72,7 @@ ;; modified state, so we try to force them to behave. (defun +modeline*inhibit-modification-hooks (orig-fn &rest args) (with-silent-modifications (apply orig-fn args))) - (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)) + (advice-add #'ws-butler-after-save :around #'+modeline*inhibit-modification-hooks)) ;;