Function: helpful--format-head
helpful--format-head is a byte-compiled function defined in
helpful.el.
Signature
(helpful--format-head HEAD)
Documentation
Given a 'head' (the first two symbols of a sexp) format and syntax highlight it.
Source Code
;; Defined in ~/.emacs.d/elpa/helpful-20250408.334/helpful.el
(defun helpful--format-head (head)
"Given a 'head' (the first two symbols of a sexp) format and
syntax highlight it."
(-let* (((def name) head)
(formatted-name
(if (and (consp name) (eq (car name) 'quote))
(format "'%S" (cadr name))
(format "%S" name)))
(formatted-def
(format "(%s %s ...)" def formatted-name))
)
(helpful--syntax-highlight formatted-def)))