Function: helpful--format-head
helpful--format-head is a natively 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 /nix/store/mvfc1hll8a1f23ivm3qmzj4bn64jr3x7-emacs-packages-deps/share/emacs/site-lisp/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)))