                        (concat
                         (if fe (propertize (format " ⚠%s " fe)
                                            'face (if active
-                                                     'spaceline-flycheck-error
+                                                     'doom-flycheck-error
                                                    'mode-line)))
                         (if fw (propertize (format " ⚠%s " fw)
                                            'face (if active
-                                                     'spaceline-flycheck-warning
+                                                     'doom-flycheck-warning
                                                    'mode-line)))))))))
     :tight t)
 

            ;; line selection
            ((or (> lines 1) (eq 'line evil-visual-selection))
             (if (and (eq evil-state 'visual) (eq evil-this-type 'line))
                 (format "%dL" lines)
               (format " %dC %dL " chars lines)))
            (t (format " %dC " (if evil chars (1- chars)))))))
       highlight-face))
    :tight t)

  ;; flycheck
  (defface spaceline-flycheck-error
    '((t (:foreground "#FC5C94" :distant-foreground "#A20C41")))
    "Face for flycheck error feedback in the modeline.")
  (defface spaceline-flycheck-warning
    '((t (:foreground "#F3EA98" :distant-foreground "#968B26")))
    "Face for flycheck warning feedback in the modeline.")
  (defface spaceline-flycheck-info
    '((t (:foreground "#8DE6F7" :distant-foreground "#21889B")))
    "Face for flycheck info feedback in the modeline.")

  (defvar-local doom--flycheck-err-cache nil "")
  (defvar-local doom--flycheck-cache nil "")

  (global-eldoc-mode -1))

;; Highlight TODO/FIXME/NOTE tags
(add-hook! (prog-mode emacs-lisp-mode css-mode)
  (font-lock-add-keywords
   nil '(("\\<\\(TODO\\(?:(.*)\\)?:?\\)\\>"  1 'warning prepend)
         ("\\<\\(FIXME\\(?:(.*)\\)?:?\\)\\>" 1 'error prepend)
         ("\\<\\(NOTE\\(?:(.*)\\)?:?\\)\\>"  1 'success prepend))))

;; Hide mode-line in help/compile window
(add-hook 'help-mode-hook 'doom|hide-mode-line)
