From c9699003f61fb45b9e2e39fe4acfa85e92d6ee12 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Tue, 11 Dec 2018 23:27:50 +0800 Subject: [PATCH] Beautify flycheck. --- doom-modeline.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doom-modeline.el b/doom-modeline.el index 78fad0a..d5f4863 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -983,13 +983,13 @@ mouse-3: Toggle minor modes" (defun doom-modeline-flycheck-icon (icon &optional text face voffset) "Displays an ICON with FACE, followed by TEXT. Uses `all-the-icons-material' to fetch the icon." - (concat (if vc-mode " " " ") + (concat " " (when icon (concat (doom-modeline-icon-material icon :face face :height 0.95 :v-adjust (or voffset -0.2)) (if text doom-modeline-vspc))) (if text (propertize text 'face face)) - (if vc-mode " " " "))) + " ")) (defvar-local doom-modeline--flycheck nil) (defun doom-modeline-update-flycheck-segment (&optional status)