From 6c941d824c1c518bdfb778326e9809c983bd6e83 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Tue, 27 Nov 2018 16:57:22 +0800 Subject: [PATCH] Only check uniquify-buffer-name-style is nil or post-forward-angle-brackets. --- doom-modeline.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doom-modeline.el b/doom-modeline.el index 5933d86..b161b26 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -746,6 +746,8 @@ buffer where knowing the current project directory is important." (buffer-file-name buffer-file-name)) (if (or (eq doom-modeline-buffer-file-name-style 'buffer-name) (not (file-exists-p buffer-file-name)) + (and (not uniquify-buffer-name-style) + (not (eq uniquify-buffer-name-style 'post-forward-angle-brackets))) (string-equal (file-name-nondirectory buffer-file-name) (replace-regexp-in-string "<.+>$" "" buffer-name)))