From 336cab5ed4e330b65adc4cab268831afd7841912 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Sun, 25 Nov 2018 01:10:53 +0800 Subject: [PATCH] Formalize the face of major mode icon. --- doom-modeline.el | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/doom-modeline.el b/doom-modeline.el index fb2de8b..6dbdfab 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -680,12 +680,9 @@ buffer where knowing the current project directory is important." (propertize icon 'help-echo (format "Major-mode: `%s'" major-mode) 'display '(raise 0) - 'face (cond (buffer-read-only 'doom-modeline-warning) - ((buffer-modified-p) 'doom-modeline-buffer-modified) - ((and buffer-file-name - (not (file-exists-p buffer-file-name))) - 'doom-modeline-urgent) - ((buffer-narrowed-p) 'doom-modeline-warning))) + 'face '(:height 1.1 + :family (all-the-icons-icon-family-for-mode major-mode) + :inherit)) " "))))) (add-hook 'find-file-hook 'doom-modeline-update-buffer-file-icon) (add-hook 'after-save-hook 'doom-modeline-update-buffer-file-icon)