From a6814ac4e3c9edc95e008687e9d1e0fe49b9bf07 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Wed, 10 Apr 2019 01:26:46 +0800 Subject: [PATCH] Fix: incorrect icons for some 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 8621539..25e8107 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -202,7 +202,8 @@ buffer where knowing the current project directory is important." (when (and doom-modeline-icon doom-modeline-major-mode-icon) (let* ((height (/ all-the-icons-scale-factor 1.3)) (icon (if (and buffer-file-name - (all-the-icons-auto-mode-match?)) + (all-the-icons-match-to-alist buffer-file-name + all-the-icons-icon-alist)) (doom-modeline-icon-for-file (file-name-nondirectory buffer-file-name) :height height) (doom-modeline-icon-for-mode major-mode :height height))))