Beautify flycheck.

This commit is contained in:
Vincent Zhang 2018-12-11 23:27:50 +08:00
parent 1926d456a3
commit c9699003f6

View file

@ -983,13 +983,13 @@ mouse-3: Toggle minor modes"
(defun doom-modeline-flycheck-icon (icon &optional text face voffset) (defun doom-modeline-flycheck-icon (icon &optional text face voffset)
"Displays an ICON with FACE, followed by TEXT. "Displays an ICON with FACE, followed by TEXT.
Uses `all-the-icons-material' to fetch the icon." Uses `all-the-icons-material' to fetch the icon."
(concat (if vc-mode " " " ") (concat " "
(when icon (when icon
(concat (concat
(doom-modeline-icon-material icon :face face :height 0.95 :v-adjust (or voffset -0.2)) (doom-modeline-icon-material icon :face face :height 0.95 :v-adjust (or voffset -0.2))
(if text doom-modeline-vspc))) (if text doom-modeline-vspc)))
(if text (propertize text 'face face)) (if text (propertize text 'face face))
(if vc-mode " " " "))) " "))
(defvar-local doom-modeline--flycheck nil) (defvar-local doom-modeline--flycheck nil)
(defun doom-modeline-update-flycheck-segment (&optional status) (defun doom-modeline-update-flycheck-segment (&optional status)