Function: which-key--lighter-status

which-key--lighter-status is a byte-compiled function defined in which-key.el.gz.

Signature

(which-key--lighter-status)

Documentation

Possibly show number of keys and total in the mode line.

Source Code

;; Defined in /usr/src/emacs/lisp/which-key.el.gz
(defun which-key--lighter-status ()
  "Possibly show number of keys and total in the mode line."
  (when which-key-show-remaining-keys
    (let ((n-shown (car (which-key--pages-keys/page which-key--pages-obj)))
          (n-tot (which-key--pages-total-keys which-key--pages-obj)))
      (setcar (cdr (assq 'which-key-mode minor-mode-alist))
              (format " WK: %s/%s keys" n-shown n-tot)))))