diff --git a/minibar.el b/minibar.el index 983b3ff58b..0eb6fd338d 100644 --- a/minibar.el +++ b/minibar.el @@ -137,9 +137,7 @@ a string to display, or nil in case there is to show." ;;;###autoload (define-minor-mode minibar-mode "Toggle Minibar display." - :init-value nil :lighter " Minibar" - :keymap nil :global t (if minibar-mode (progn @@ -450,6 +448,9 @@ when it was recorded.") (lambda (i) (let ((load (minibar--module-cpu-calculate-load (format "cpu%i" i)))) + ;; You should be able to simplify this with an + ;; `alist-get' call and something like #'> as the + ;; equality test. (cond ((and (char-displayable-p ?█) ; #x2588 (>= load 87.5))