aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/flycheck-config.el5
-rw-r--r--modules/modeline-config.el7
2 files changed, 12 insertions, 0 deletions
diff --git a/modules/flycheck-config.el b/modules/flycheck-config.el
index 8c3e2a7b..e6dfb25e 100644
--- a/modules/flycheck-config.el
+++ b/modules/flycheck-config.el
@@ -56,6 +56,11 @@
(checkdoc-arguments
'(("sentence-end-double-space" nil)
("warn-escape" nil)))
+ ;; Modeline customization (rendered via mode-line-format in modeline-config.el).
+ ;; The count portion picks up `error' / `warning' faces because
+ ;; `flycheck-mode-line-color' stays t (the default).
+ (flycheck-mode-line-prefix "🐛")
+ (flycheck-mode-success-indicator " ✓")
:config
;; use the load-path of the currently running Emacs instance
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