From 777390f00b1c5433c79faa5f88cfb1d15eb706bb Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Thu, 8 Aug 2019 23:12:40 +0800 Subject: [PATCH] Display correct buffer state after saving org src block. --- doom-modeline-segments.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index 807ee1f..ea11f7e 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -299,6 +299,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-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-edit-src-save :after #'doom-modeline-update-buffer-file-state-icon) (when (>= emacs-major-version 26) (add-variable-watcher @@ -346,6 +347,7 @@ mouse-1: Previous buffer\nmouse-3: Next buffer" (advice-add #'symbol-overlay-rename :after #'doom-modeline-update-buffer-file-name) (advice-add #'popup-create :after #'doom-modeline-update-buffer-file-name) (advice-add #'popup-delete :after #'doom-modeline-update-buffer-file-name) +(advice-add #'org-edit-src-save :after #'doom-modeline-update-buffer-file-name) (with-no-warnings (if (boundp 'after-focus-change-function)