summaryrefslogtreecommitdiff
path: root/modules/modeline-config.el
diff options
context:
space:
mode:
Diffstat (limited to 'modules/modeline-config.el')
-rw-r--r--modules/modeline-config.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/modeline-config.el b/modules/modeline-config.el
index 7fc75594..771d960f 100644
--- a/modules/modeline-config.el
+++ b/modules/modeline-config.el
@@ -231,6 +231,13 @@ Shows only in active window.")
mode-line-format-right-align
(:eval (when (fboundp 'cj/recording-modeline-indicator)
(cj/recording-modeline-indicator)))
+ ;; Flycheck status: prefix + counts (or success indicator). Gated
+ ;; to the active window, and to buffers where flycheck has loaded
+ ;; and turned on, so the call is safe even before flycheck loads.
+ (:eval (when (and (mode-line-window-selected-p)
+ (bound-and-true-p flycheck-mode))
+ (flycheck-mode-line-status-text)))
+ " "
cj/modeline-vc-branch
" "
cj/modeline-misc-info