Function: hydra--hint-from-matrix
hydra--hint-from-matrix is a byte-compiled function defined in
hydra.el.
Signature
(hydra--hint-from-matrix BODY HEADS-MATRIX)
Documentation
Generate a formatted table-style docstring according to BODY and HEADS-MATRIX.
HEADS-MATRIX is expected to be a list of heads with following features: Each heads must have the same length Each head must have a property max-key-len and max-doc-len.
Source Code
;; Defined in ~/.emacs.d/elpa/hydra-20250316.1254/hydra.el
(defun hydra--hint-from-matrix (body heads-matrix)
"Generate a formatted table-style docstring according to BODY and HEADS-MATRIX.
HEADS-MATRIX is expected to be a list of heads with following features:
Each heads must have the same length
Each head must have a property max-key-len and max-doc-len."
(when heads-matrix
(let ((lines (hydra--hint-from-matrix-1 body heads-matrix)))
`(,@(apply #'append (hydra-interpose '("\n") lines))
"\n"))))