Function: hydra-key-doc-function-default

hydra-key-doc-function-default is a byte-compiled function defined in hydra.el.

Signature

(hydra-key-doc-function-default KEY KEY-WIDTH DOC DOC-WIDTH)

Source Code

;; Defined in ~/.emacs.d/elpa/hydra-20250316.1254/hydra.el
(defun hydra-key-doc-function-default (key key-width doc doc-width)
  (cond
    ((equal key " ") (format (format "%%-%ds" (+ 3 key-width doc-width)) doc))
    ((listp doc)
     `(format ,(format "%%%ds: %%%ds" key-width (- -1 doc-width)) ,key ,doc))
    (t (format (format "%%%ds: %%%ds" key-width (- -1 doc-width)) key doc))))