Variable: embark-around-action-hooks
embark-around-action-hooks is a customizable variable defined in
embark.el.
Value
Large value
((org-store-link embark-org--at-heading)
(org-archive-subtree-default-with-confirmation embark-org--at-heading)
(org-clock-out embark-org--at-heading)
(org-clock-in embark-org--at-heading)
(org-refile embark-org--at-heading)
(org-tree-to-indirect-buffer embark-org--at-heading)
(org-toggle-heading embark-org--mark-plain-list)
(org-toggle-checkbox embark-org--mark-plain-list)
(org-indent-block embark-org--at-block-head) (shell embark--cd)
(eshell embark--cd) (kill-region embark--mark-target)
(kill-ring-save embark--mark-target)
(indent-region embark--mark-target)
(ispell-region embark--mark-target) (fill-region embark--mark-target)
(upcase-region embark--mark-target)
(downcase-region embark--mark-target)
(capitalize-region embark--mark-target)
(count-words-region embark--mark-target)
(count-words embark--mark-target)
(delete-duplicate-lines embark--mark-target)
(shell-command-on-region embark--mark-target)
(delete-region embark--mark-target)
(format-encode-region embark--mark-target)
(format-decode-region embark--mark-target)
(write-region embark--mark-target)
(append-to-file embark--mark-target)
(append-to-buffer embark--mark-target)
(shell-command-on-region embark--mark-target)
(embark-eval-replace embark--mark-target)
(delete-indentation embark--mark-target)
(comment-dwim embark--mark-target)
(insert-parentheses embark--mark-target)
(insert-pair embark--mark-target) (org-emphasize embark--mark-target)
(embark-select embark--select)
(embark-insert
embark--insert-in-minibuffer-selected-window-if-quitting))
Documentation
Alist associating commands with post-action hooks.
The hooks are run instead of the embarked upon action. The hook
can decide whether or not to run the action or it can run it
in some special environment, like inside a let-binding or inside
save-excursion. Each hook is called with keyword argument :run
providing a function encapsulating the following around hooks and
the action; the hook additionally receives the keyword arguments
used for other types of action hooks, for more details see
embark-target-injection-hooks.
Source Code
;; Defined in ~/.emacs.d/elpa/embark-20260610.302/embark.el
(defcustom embark-around-action-hooks
'(;; use directory of target as default-directory
(shell embark--cd)
(eshell embark--cd)
;; mark the target preserving point and previous mark
(kill-region embark--mark-target)
(kill-ring-save embark--mark-target)
(indent-region embark--mark-target)
(ispell-region embark--mark-target)
(fill-region embark--mark-target)
(upcase-region embark--mark-target)
(downcase-region embark--mark-target)
(capitalize-region embark--mark-target)
(count-words-region embark--mark-target)
(count-words embark--mark-target)
(delete-duplicate-lines embark--mark-target)
(shell-command-on-region embark--mark-target)
(delete-region embark--mark-target)
(format-encode-region embark--mark-target)
(format-decode-region embark--mark-target)
(write-region embark--mark-target)
(append-to-file embark--mark-target)
(append-to-buffer embark--mark-target)
(shell-command-on-region embark--mark-target)
(embark-eval-replace embark--mark-target)
(delete-indentation embark--mark-target)
(comment-dwim embark--mark-target)
(insert-parentheses embark--mark-target)
(insert-pair embark--mark-target)
(org-emphasize embark--mark-target)
;; do the actual work of selecting & deselecting targets
(embark-select embark--select)
;; fix behavior of embark-insert when called as a quitting action
;; from a minibuffer without a completion session (see issue #806)
(embark-insert embark--insert-in-minibuffer-selected-window-if-quitting))
"Alist associating commands with post-action hooks.
The hooks are run instead of the embarked upon action. The hook
can decide whether or not to run the action or it can run it
in some special environment, like inside a let-binding or inside
`save-excursion'. Each hook is called with keyword argument :run
providing a function encapsulating the following around hooks and
the action; the hook additionally receives the keyword arguments
used for other types of action hooks, for more details see
`embark-target-injection-hooks'."
:type '(alist :key-type
(choice symbol
(const :tag "Default" t)
(const :tag "Always" :always))
:value-type hook))