From b6f98e46469d6d7c3d9dd96b8419948813c19edb Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Wed, 14 Nov 2018 01:35:24 +0800 Subject: [PATCH] Update the buffer file name after reverting the file. --- doom-modeline.el | 1 + 1 file changed, 1 insertion(+) diff --git a/doom-modeline.el b/doom-modeline.el index 664de69..beeefae 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -523,6 +523,7 @@ active.") (when face `(:inherit ,face)))))) 'help-echo buffer-file-truename)))) (add-hook 'find-file-hook #'doom-modeline-update-buffer-file-name) +(add-hook 'after-revert-hook #'doom-modeline-update-buffer-file-name) (add-hook 'after-save-hook #'doom-modeline-update-buffer-file-name) (defun doom-modeline--buffer-file-name-truncate (file-path true-file-path &optional truncate-tail)