From 15a0a8a9628e61d8c37a5b14cb7f654522498aa2 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Wed, 14 Nov 2018 23:03:44 +0800 Subject: [PATCH] Fallback to buffer name if `doom-modeline-buffer-file-name` is nil. --- doom-modeline.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doom-modeline.el b/doom-modeline.el index 721cd17..eb3ca4a 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -656,7 +656,8 @@ directory, the file name, and its state (modified, read-only or non-existent)." :face 'doom-modeline-warning :v-adjust -0.05) " "))) - (if (and buffer-file-name + (if (and doom-modeline-buffer-file-name + buffer-file-name (file-exists-p buffer-file-name)) doom-modeline-buffer-file-name "%b")))