Variable: embark-default-action-overrides
embark-default-action-overrides is a customizable variable defined in
embark.el.
Value
((org-heading . embark-org-heading-default-action))
Documentation
Alist associating target types with overriding default actions.
When the source of a target is minibuffer completion, the default action for it is usually the command that opened the minibuffer in the first place but this can be overridden for a given type by an entry in this list.
For example, if you run delete-file the default action for its
completion candidates is delete-file itself. You may prefer to
make find-file the default action for all files, even if they
were obtained from a delete-file prompt. In that case you can
configure that by adding an entry to this variable pairing file
with find-file.
In addition to target types, you can also use as keys in this alist,
pairs of a target type and a command name. Such a pair indicates that
the override only applies if the target was obtained from minibuffer
completion from that command. For example adding an
entry (cons (cons 'file 'delete-file) 'find-file) to this alist would
indicate that for files at the prompt of the delete-file command,
find-file should be used as the default action.
Source Code
;; Defined in ~/.emacs.d/elpa/embark-20260610.302/embark.el
(defcustom embark-default-action-overrides nil
"Alist associating target types with overriding default actions.
When the source of a target is minibuffer completion, the default
action for it is usually the command that opened the minibuffer
in the first place but this can be overridden for a given type by
an entry in this list.
For example, if you run `delete-file' the default action for its
completion candidates is `delete-file' itself. You may prefer to
make `find-file' the default action for all files, even if they
were obtained from a `delete-file' prompt. In that case you can
configure that by adding an entry to this variable pairing `file'
with `find-file'.
In addition to target types, you can also use as keys in this alist,
pairs of a target type and a command name. Such a pair indicates that
the override only applies if the target was obtained from minibuffer
completion from that command. For example adding an
entry (cons (cons \\='file \\='delete-file) \\='find-file) to this alist would
indicate that for files at the prompt of the `delete-file' command,
`find-file' should be used as the default action."
:type '(alist :key-type (choice (symbol :tag "Type")
(cons (symbol :tag "Type")
(symbol :tag "Command")))
:value-type (function :tag "Default action")))