Update buffer state icon after generating a new buffer.

This commit is contained in:
Vincent Zhang 2019-09-05 04:07:29 +08:00
parent c97e06454b
commit 2553e8cf06

View file

@ -296,8 +296,9 @@ Uses `all-the-icons-material' to fetch the icon."
(advice-add #'undo :after #'doom-modeline-update-buffer-file-state-icon) (advice-add #'undo :after #'doom-modeline-update-buffer-file-state-icon)
(advice-add #'undo-tree-undo-1 :after #'doom-modeline-update-buffer-file-state-icon) (advice-add #'undo-tree-undo-1 :after #'doom-modeline-update-buffer-file-state-icon)
(advice-add #'undo-tree-redo-1 :after #'doom-modeline-update-buffer-file-state-icon) (advice-add #'undo-tree-redo-1 :after #'doom-modeline-update-buffer-file-state-icon)
(advice-add #'narrow-to-region :after #'doom-modeline-update-buffer-file-state-icon) (advice-add #'generate-new-buffer :after #'doom-modeline-update-buffer-file-state-icon)
(advice-add #'not-modified :after #'doom-modeline-update-buffer-file-state-icon) (advice-add #'not-modified :after #'doom-modeline-update-buffer-file-state-icon)
(advice-add #'narrow-to-region :after #'doom-modeline-update-buffer-file-state-icon)
(advice-add #'widen :after #'doom-modeline-update-buffer-file-state-icon) (advice-add #'widen :after #'doom-modeline-update-buffer-file-state-icon)
(advice-add #'fancy-narrow-to-region :after #'doom-modeline-update-buffer-file-state-icon) (advice-add #'fancy-narrow-to-region :after #'doom-modeline-update-buffer-file-state-icon)
(advice-add #'fancy-widen :after #'doom-modeline-update-buffer-file-state-icon) (advice-add #'fancy-widen :after #'doom-modeline-update-buffer-file-state-icon)