 (with-eval-after-load "inline-docs"
   (set-face-attribute 'inline-docs-border-face nil :inherit 'fringe)
   (set-face-attribute 'inline-docs-indicator-face nil :inherit 'fringe))
+
+(with-eval-after-load "js2-mode"
+  (set-face-underline 'js2-error theme-color-error)
+  (set-face-underline 'js2-warning theme-color-warning))
 
 (with-eval-after-load "markdown-mode"
   (set-face-attribute 'markdown-inline-code-face nil :box '(:line-width 1)))

  `((((background dark))
     (:inherit font-lock-comment-face :background "black"))
    (((background light))
     (:inherit font-lock-comment-face :background "grey91")))
  "Face to hightlight `hideshow' overlays."
  :group 'editing)

;; Messages
(set-face-attribute 'error nil :foreground "tomato")
(set-face-attribute 'success nil :foreground "sea green")
(set-face-attribute 'warning nil :foreground "dark orange" :weight 'bold)

;; Line numbers
(set-face-attribute 'line-number-current-line nil
                    :foreground "tomato"
                    :weight 'bold)

;; Mode line
(set-face-attribute 'mode-line nil
                    :family my-variable-pitch-font
                    :background "#697D8A"
                    :box '(:line-width 6 :color "#697D8A"))
(set-face-attribute 'mode-line-inactive nil
                    :family my-variable-pitch-font
                    :background "#889BA7"
                    :box '(:line-width 6 :color "#889BA7"))

;; Plugins
(with-eval-after-load "anzu"

  (set-face-attribute 'ediff-fine-diff-C    nil :background "#4A8BB3"))

(with-eval-after-load "flycheck"
  (set-face-underline 'flycheck-error theme-color-error)
  (set-face-underline 'flycheck-warning theme-color-warning))

(with-eval-after-load "hl-todo"
  (setq hl-todo-keyword-faces
        `(("TODO"  . (:box '(:line-width 1) :foreground ,theme-color-warning))
          ("FIXME" . (:box '(:line-width 1) :foreground ,theme-color-error))
          ("NOTE"  . (:box '(:line-width 1))))))

(with-eval-after-load "indent-guide"
