mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-19 13:43:36 -05:00
narf--flycheck-count -> narf/-flycheck-count
This commit is contained in:
@@ -370,13 +370,6 @@ iedit."
|
|||||||
highlight-face)))
|
highlight-face)))
|
||||||
|
|
||||||
;; flycheck
|
;; flycheck
|
||||||
(defun narf--flycheck-count (state)
|
|
||||||
"Return flycheck information for the given error type STATE."
|
|
||||||
(when (flycheck-has-current-errors-p state)
|
|
||||||
(if (eq 'running flycheck-last-status-change)
|
|
||||||
"?"
|
|
||||||
(cdr-safe (assq state (flycheck-count-errors flycheck-current-errors))))))
|
|
||||||
|
|
||||||
(defface spaceline-flycheck-error
|
(defface spaceline-flycheck-error
|
||||||
'((t (:foreground "#FC5C94" :distant-foreground "#A20C41")))
|
'((t (:foreground "#FC5C94" :distant-foreground "#A20C41")))
|
||||||
"Face for flycheck error feedback in the modeline.")
|
"Face for flycheck error feedback in the modeline.")
|
||||||
|
@@ -9,5 +9,13 @@
|
|||||||
(replace-match "" t t s)
|
(replace-match "" t t s)
|
||||||
s))))))
|
s))))))
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(defun narf/-flycheck-count (state)
|
||||||
|
"Return flycheck information for the given error type STATE."
|
||||||
|
(when (flycheck-has-current-errors-p state)
|
||||||
|
(if (eq 'running flycheck-last-status-change)
|
||||||
|
"?"
|
||||||
|
(cdr-safe (assq state (flycheck-count-errors flycheck-current-errors))))))
|
||||||
|
|
||||||
(provide 'defuns-spaceline)
|
(provide 'defuns-spaceline)
|
||||||
;;; defuns-spaceline.el ends here
|
;;; defuns-spaceline.el ends here
|
||||||
|
Reference in New Issue
Block a user