Variable: embark-auto-prefix-help-mode-hook

embark-auto-prefix-help-mode-hook is a customizable variable defined in embark.el.

Value

nil

Documentation

Hook run after entering or leaving embark-auto-prefix-help-mode(var)/embark-auto-prefix-help-mode(fun).

No problems result if this variable is not bound. add-hook automatically binds it. (This is true for all hook variables.)

Source Code

;; Defined in ~/.emacs.d/elpa/embark-20260610.302/embark.el
;;;###autoload
(define-minor-mode embark-auto-prefix-help-mode
  "Global minor mode to automatically provide prefix help.

This global minor mode will automatically prompt you for a command to
run under the key binding prefix you have typed, if you pause for a
number of seconds (given by `embark-auto-prefix-help-delay').  This
functionality is similar to that of the which-key package, which comes
with Emacs 30 and later.

If you do sometimes want this kind of help remembering commands under a
prefix, but do not want it to occur automatically after a delay, you can
have it instead appear when pressing `help-char' (C-h by default) after
a prefix, by setting:

\(setq prefix-help-command #\='embark-prefix-help-command)"
  :lighter " eaph"
  :global t
  (if embark-auto-prefix-help-mode
      (setq embark--backup-prefix-help-command prefix-help-command
            prefix-help-command #'embark-prefix-help-command
            embark--auto-prefix-help-timer
            (run-with-idle-timer embark-auto-prefix-help-delay t
                                 #'embark--auto-prefix-help))
    (cancel-timer embark--auto-prefix-help-timer)
    (setq prefix-help-command embark--backup-prefix-help-command)))