From b34f9849d2ae4849c5b7c24a295f5deb36af0436 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Tue, 19 Feb 2019 04:04:30 +0800 Subject: [PATCH] Set default file icon. --- doom-modeline-segments.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index 87e87e8..331f222 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -166,6 +166,8 @@ buffer where knowing the current project directory is important." (file-name-nondirectory buffer-file-name) :height height) (doom-modeline-icon-for-mode major-mode :height height)))) + (if (symbolp icon) + (setq icon (doom-modeline-icon-for-mode 'fundamental-mode :height height))) (unless (symbolp icon) (propertize icon 'help-echo (format "Major-mode: %s" mode-name)