From bec939f4adab6141823e8a503c76d600dddb1eef Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Mon, 18 Feb 2019 22:14:23 +0800 Subject: [PATCH] Fix: missing or incorrect mode icons. --- doom-modeline-segments.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index faa54c3..76dc1fc 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -160,9 +160,7 @@ buffer where knowing the current project directory is important." (setq doom-modeline--buffer-file-icon (when (and doom-modeline-icon doom-modeline-major-mode-icon) (let* ((height (/ all-the-icons-scale-factor 1.3)) - (icon (doom-modeline-icon-for-mode major-mode :height height))) - (if (symbolp icon) - (setq icon (doom-modeline-icon-for-file (buffer-name) :height height))) + (icon (doom-modeline-icon-for-file (buffer-name) :height height))) (unless (symbolp icon) (propertize icon 'help-echo (format "Major-mode: %s" mode-name)