Function: embark-collect-direct-action-minor-mode
embark-collect-direct-action-minor-mode is an interactive and
byte-compiled function defined in embark.el.
Signature
(embark-collect-direct-action-minor-mode &optional ARG)
Documentation
Bind type-specific actions directly (without need for embark-act).
This is a minor mode. If called interactively, toggle the
Embark-Collect-Direct-Action minor mode mode. If the prefix argument
is positive, enable the mode, and if it is zero or negative, disable the
mode.
If called from Lisp, toggle the mode if ARG is toggle. Enable the
mode if ARG is nil, omitted, or is a positive number. Disable the mode
if ARG is a negative number.
To check whether the minor mode is enabled in the current buffer,
evaluate the variable embark-collect-direct-action-minor-mode(var)/embark-collect-direct-action-minor-mode(fun).
The mode's hook is called both when the mode is enabled and when it is disabled.
Key Bindings
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))))))