narf--flycheck-count -> narf/-flycheck-count
This commit is contained in:
parent
0af304b311
commit
15fa9c0a9f
2 changed files with 8 additions and 7 deletions
|
@ -370,13 +370,6 @@ iedit."
|
|||
highlight-face)))
|
||||
|
||||
;; 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
|
||||
'((t (:foreground "#FC5C94" :distant-foreground "#A20C41")))
|
||||
"Face for flycheck error feedback in the modeline.")
|
||||
|
|
|
@ -9,5 +9,13 @@
|
|||
(replace-match "" t t 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)
|
||||
;;; defuns-spaceline.el ends here
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue