From cb01400f946b3fbdd92a8a240d8e06bd9c29cb31 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Sat, 5 Jan 2019 19:24:59 +0800 Subject: [PATCH] Fix #86: Unchanged Org file is displayed as modified. Remove advices of set-buffer-modified-p, since it's called in org-unmodified. --- doom-modeline.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doom-modeline.el b/doom-modeline.el index 244b282..3bf8555 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -829,7 +829,7 @@ Uses `all-the-icons-material' to fetch the icon." (advice-add #'undo-tree-redo :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 #'set-buffer-modified-p :after #'doom-modeline-update-buffer-file-state-icon) +;; (advice-add #'set-buffer-modified-p :after #'doom-modeline-update-buffer-file-state-icon) (when (>= emacs-major-version 26) (add-variable-watcher @@ -861,7 +861,7 @@ mouse-1: Previous buffer\nmouse-3: Next buffer" (advice-add #'undo :after #'doom-modeline-update-buffer-file-name) (advice-add #'undo-tree-undo :after #'doom-modeline-update-buffer-file-name) (advice-add #'undo-tree-redo :after #'doom-modeline-update-buffer-file-name) -(advice-add #'set-buffer-modified-p :after #'doom-modeline-update-buffer-file-name) +;; (advice-add #'set-buffer-modified-p :after #'doom-modeline-update-buffer-file-name) (doom-modeline-def-segment buffer-info "Combined information about the current buffer, including the current working