From 944148526f51eaf257b77692ae102d93f3e4f5f5 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Wed, 26 Jun 2019 22:55:46 +0800 Subject: [PATCH] Revert "Make after-change-functions to buffer-local hook." This reverts commit bafe20a1719608accd1519375e1b1121e2be44b7. --- doom-modeline-segments.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index 6614299..6da0cd2 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -293,7 +293,7 @@ Uses `all-the-icons-material' to fetch the icon." (add-hook 'after-revert-hook #'doom-modeline-update-buffer-file-state-icon) (add-hook 'after-save-hook #'doom-modeline-update-buffer-file-state-icon) (add-hook 'read-only-mode-hook #'doom-modeline-update-buffer-file-state-icon) -(add-hook 'after-change-functions #'doom-modeline-update-buffer-file-state-icon nil t) +(add-hook 'after-change-functions #'doom-modeline-update-buffer-file-state-icon) (add-hook 'clone-indirect-buffer-hook #'doom-modeline-update-buffer-file-state-icon) (add-hook 'evil-insert-state-exit-hook #'doom-modeline-update-buffer-file-state-icon) (advice-add #'undo :after #'doom-modeline-update-buffer-file-state-icon) @@ -340,7 +340,7 @@ mouse-1: Previous buffer\nmouse-3: Next buffer" (add-hook 'find-file-hook #'doom-modeline-update-buffer-file-name) (add-hook 'after-revert-hook #'doom-modeline-update-buffer-file-name) (add-hook 'after-save-hook #'doom-modeline-update-buffer-file-name) -(add-hook 'after-change-functions #'doom-modeline-update-buffer-file-name nil t) +(add-hook 'after-change-functions #'doom-modeline-update-buffer-file-name) (add-hook 'clone-indirect-buffer-hook #'doom-modeline-update-buffer-file-name) (add-hook 'evil-insert-state-exit-hook #'doom-modeline-update-buffer-file-name) (advice-add #'rename-buffer :after #'doom-modeline-update-buffer-file-name)