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")))