Variable: embark-collect-direct-action-minor-mode-hook
embark-collect-direct-action-minor-mode-hook is a customizable
variable defined in embark.el.
Value
nil
Documentation
Hook run after entering or leaving embark-collect-direct-action-minor-mode(var)/embark-collect-direct-action-minor-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
(define-minor-mode embark-collect-direct-action-minor-mode
"Bind type-specific actions directly (without need for `embark-act')."
:init-value nil
:lighter " Act"
(unless (derived-mode-p 'embark-collect-mode)
(user-error "Not in an Embark Collect buffer"))
(save-excursion
(goto-char (point-min))
(let ((inhibit-read-only t) maps)
(while (progn
(when (tabulated-list-get-id)
(put-text-property
(point) (button-end (point)) 'keymap
(if embark-collect-direct-action-minor-mode
(when-let* ((target (embark-collect--target))
(type (plist-get target :type)))
(or (alist-get type maps)
(setf (alist-get type maps)
(embark-collect--direct-action-map type)))))))
(forward-button 1 nil nil t))))))