Function: helpful--hook-p
helpful--hook-p is a byte-compiled function defined in helpful.el.
Signature
(helpful--hook-p SYMBOL VALUE)
Documentation
Does SYMBOL look like a hook?
Source Code
;; Defined in ~/.emacs.d/elpa/helpful-20250408.334/helpful.el
(defun helpful--hook-p (symbol value)
"Does SYMBOL look like a hook?"
(and
(or
(s-ends-with-p "-hook" (symbol-name symbol))
;; E.g. `after-change-functions', which can be used with
;; `add-hook'.
(s-ends-with-p "-functions" (symbol-name symbol)))
(consp value)))