Variable: embark-target-injection-hooks
embark-target-injection-hooks is a customizable variable defined in
embark.el.
Value
Large value
((org-babel-execute-subtree embark--ignore-target)
(org-babel-execute-buffer embark--ignore-target)
(org-babel-execute-src-block-maybe embark--ignore-target)
(org-babel-execute-src-block embark--ignore-target)
(org-babel-lob-execute-maybe embark--ignore-target)
(org-babel-execute-maybe embark--ignore-target)
(org-schedule embark--ignore-target)
(org-refile embark--ignore-target)
(org-delete-property embark--ignore-target)
(org-set-property embark--ignore-target)
(org-set-tags-command embark--ignore-target)
(org-insert-link embark--ignore-target)
(org-open-at-point embark--ignore-target)
(org-table-export embark--ignore-target)
(org-table-edit-field embark--ignore-target)
(org-table-eval-formula embark--ignore-target)
(async-shell-command embark--allow-edit embark--shell-prep)
(shell-command embark--allow-edit embark--shell-prep)
(pp-eval-expression embark--eval-prep)
(eval-expression embark--eval-prep)
(package-delete embark--force-complete)
(embark-pp-eval-defun embark--ignore-target)
(eval-defun embark--ignore-target)
(eval-last-sexp embark--ignore-target)
(embark-eval-replace embark--ignore-target)
(write-region embark--ignore-target)
(append-to-file embark--ignore-target)
(append-to-buffer embark--ignore-target)
(shell-command-on-region embark--ignore-target)
(format-encode-region embark--ignore-target)
(format-decode-region embark--ignore-target)
(xref-find-definitions embark--ignore-target)
(xref-find-references embark--ignore-target)
(sort-regexp-fields embark--ignore-target)
(align-regexp embark--ignore-target)
(embark-dired-jump embark--as-file)
(embark-open-externally embark--as-file))
Documentation
Alist associating commands with post-injection setup hooks.
For commands appearing as keys in this alist, run the corresponding
value as a setup hook after injecting the target into in the minibuffer
and before acting on it. The hooks must accept arbitrary keyword
arguments. The :action command, the :target string and target :type are
always present. For actions at point the target :bounds are passed too.
The default hook (used when no command-specific hook is found) is
specified by the entry with key t. Finally, hooks with the key
:always are always executed.
Source Code
;; Defined in ~/.emacs.d/elpa/embark-20260610.302/embark.el
(defcustom embark-target-injection-hooks
'((async-shell-command embark--allow-edit embark--shell-prep)
(shell-command embark--allow-edit embark--shell-prep)
(pp-eval-expression embark--eval-prep)
(eval-expression embark--eval-prep)
(package-delete embark--force-complete)
;; commands evaluating code found in the buffer, which may in turn prompt
(embark-pp-eval-defun embark--ignore-target)
(eval-defun embark--ignore-target)
(eval-last-sexp embark--ignore-target)
(embark-eval-replace embark--ignore-target)
;; commands which prompt for something that is *not* the target
(write-region embark--ignore-target)
(append-to-file embark--ignore-target)
(append-to-buffer embark--ignore-target)
(shell-command-on-region embark--ignore-target)
(format-encode-region embark--ignore-target)
(format-decode-region embark--ignore-target)
(xref-find-definitions embark--ignore-target)
(xref-find-references embark--ignore-target)
(sort-regexp-fields embark--ignore-target)
(align-regexp embark--ignore-target)
;; Treat target as file
(embark-dired-jump embark--as-file)
(embark-open-externally embark--as-file))
"Alist associating commands with post-injection setup hooks.
For commands appearing as keys in this alist, run the corresponding
value as a setup hook after injecting the target into in the minibuffer
and before acting on it. The hooks must accept arbitrary keyword
arguments. The :action command, the :target string and target :type are
always present. For actions at point the target :bounds are passed too.
The default hook (used when no command-specific hook is found) is
specified by the entry with key t. Finally, hooks with the key
:always are always executed."
:type '(alist :key-type
(choice symbol
(const :tag "Default" t)
(const :tag "Always" :always))
:value-type hook))