From 2f3df816c2b04b716ecc261d8ce4d3f0d62033f5 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Tue, 29 Oct 2019 20:33:26 +0800 Subject: [PATCH] Don't display buffer modification state in pure buffers. --- doom-modeline-segments.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index 377501f..50051db 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -262,7 +262,8 @@ Uses `all-the-icons-material' to fetch the icon." (cond (buffer-read-only (doom-modeline-buffer-file-state-icon "lock" "🔒" "%1*" 'doom-modeline-warning)) - ((and (buffer-modified-p) + ((and buffer-file-name + (buffer-modified-p) doom-modeline-buffer-modification-icon) (doom-modeline-buffer-file-state-icon "save" "💾" "%1*" 'doom-modeline-buffer-modified))