From 0a3ba66da750d90a104d73152a73fed80dc85382 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Tue, 21 May 2019 21:21:02 +0800 Subject: [PATCH] Show correct buffer name in ivy-occur buffers. --- doom-modeline-segments.el | 1 + 1 file changed, 1 insertion(+) diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index 4a831f3..93450a9 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -344,6 +344,7 @@ mouse-1: Previous buffer\nmouse-3: Next buffer" (add-hook 'evil-insert-state-exit-hook #'doom-modeline-update-buffer-file-name) (advice-add #'rename-buffer :after #'doom-modeline-update-buffer-file-name) (advice-add #'set-visited-file-name :after #'doom-modeline-update-buffer-file-name) +(advice-add #'pop-to-buffer :after #'doom-modeline-update-buffer-file-name) (advice-add #'undo :after #'doom-modeline-update-buffer-file-name) (advice-add #'undo-tree-undo-1 :after #'doom-modeline-update-buffer-file-name) (advice-add #'undo-tree-redo-1 :after #'doom-modeline-update-buffer-file-name)