From 2553e8cf06646840904abdf7a1ed473d721c70ea Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Thu, 5 Sep 2019 04:07:29 +0800 Subject: [PATCH] Update buffer state icon after generating a new buffer. --- doom-modeline-segments.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index 42c3fc2..2c57ce5 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -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-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 #'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 #'narrow-to-region :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-widen :after #'doom-modeline-update-buffer-file-state-icon)