Fix #221: update file state icon after org-toggle-narrow-to-subtree.

This commit is contained in:
Vincent Zhang 2019-09-18 17:38:06 +08:00
parent 349d7c0084
commit efd2f3ac4c

View file

@ -305,6 +305,7 @@ Uses `all-the-icons-material' to fetch the icon."
(advice-add #'org-narrow-to-block :after #'doom-modeline-update-buffer-file-state-icon) (advice-add #'org-narrow-to-block :after #'doom-modeline-update-buffer-file-state-icon)
(advice-add #'org-narrow-to-element :after #'doom-modeline-update-buffer-file-state-icon) (advice-add #'org-narrow-to-element :after #'doom-modeline-update-buffer-file-state-icon)
(advice-add #'org-narrow-to-subtree :after #'doom-modeline-update-buffer-file-state-icon) (advice-add #'org-narrow-to-subtree :after #'doom-modeline-update-buffer-file-state-icon)
(advice-add #'org-toggle-narrow-to-subtree :after #'doom-modeline-update-buffer-file-state-icon)
(advice-add #'org-edit-src-save :after #'doom-modeline-update-buffer-file-state-icon) (advice-add #'org-edit-src-save :after #'doom-modeline-update-buffer-file-state-icon)
(advice-add #'symbol-overlay-rename :after #'doom-modeline-update-buffer-file-state-icon) (advice-add #'symbol-overlay-rename :after #'doom-modeline-update-buffer-file-state-icon)