Variable: embark-pre-action-hooks
embark-pre-action-hooks is a customizable variable defined in
embark.el.
Value
Large value
((outline-cycle embark-org-goto-heading)
(outline-mark-subtree embark-org-goto-heading)
(outline-next-visible-heading embark-org-goto-heading)
(outline-previous-visible-heading embark-org-goto-heading)
(outline-forward-same-level embark-org-goto-heading)
(outline-backward-same-level embark-org-goto-heading)
(outline-move-subtree-up embark-org-goto-heading)
(outline-move-subtree-down embark-org-goto-heading)
(outline-up-heading embark-org-goto-heading)
(outline-show-subtree embark-org-goto-heading)
(outline-hide-subtree embark-org-goto-heading)
(outline-demote embark-org-goto-heading)
(outline-promote embark-org-goto-heading)
(org-cycle embark-org-goto-heading)
(org-todo embark-org-goto-heading)
(org-schedule embark-org-goto-heading)
(org-deadline embark-org-goto-heading)
(org-priority embark-org-goto-heading)
(org-set-tags-command embark-org-goto-heading)
(org-set-property embark-org-goto-heading)
(org-delete-property embark-org-goto-heading)
(org-cut-subtree embark-org-goto-heading)
(org-narrow-to-subtree embark-org-goto-heading)
(org-do-promote embark-org-goto-heading)
(org-do-demote embark-org-goto-heading)
(org-sort embark-org-goto-heading)
(org-insert-heading-respect-content embark-org-goto-heading)
(org-insert-todo-heading-respect-content embark-org-goto-heading)
(embark-org-copy-as-markdown embark--mark-target)
(eval-last-sexp embark--end-of-target)
(indent-pp-sexp embark--beginning-of-target)
(backward-up-list embark--beginning-of-target)
(backward-list embark--beginning-of-target)
(forward-list embark--end-of-target)
(forward-sexp embark--end-of-target)
(backward-sexp embark--beginning-of-target)
(raise-sexp embark--beginning-of-target)
(kill-sexp embark--beginning-of-target)
(mark-sexp embark--beginning-of-target)
(transpose-sexps embark--end-of-target)
(transpose-sentences embark--end-of-target)
(transpose-paragraphs embark--end-of-target)
(forward-sentence embark--end-of-target)
(backward-sentence embark--beginning-of-target)
(backward-paragraph embark--beginning-of-target)
(embark-insert embark--end-of-target)
(find-library embark--xref-push-marker) (delete-file embark--confirm)
(delete-directory embark--confirm) (kill-buffer embark--confirm)
(embark-kill-buffer-and-window embark--confirm)
(bookmark-delete embark--confirm) (package-delete embark--confirm)
(tab-bar-close-tab-by-name embark--confirm)
(embark-isearch-forward embark--unmark-target)
(embark-isearch-backward embark--unmark-target)
(occur embark--unmark-target)
(query-replace embark--beginning-of-target embark--unmark-target)
(query-replace-regexp embark--beginning-of-target
embark--unmark-target)
(replace-string embark--beginning-of-target embark--unmark-target)
(replace-regexp embark--beginning-of-target embark--unmark-target)
(mark embark--mark-target) (shell embark--universal-argument)
(eshell embark--universal-argument))
Documentation
Alist associating commands with pre-action hooks.
The hooks are run right before an action is embarked upon. See
embark-target-injection-hooks for information about the hook
arguments and more details.
Source Code
;; Defined in ~/.emacs.d/elpa/embark-20260610.302/embark.el
(defcustom embark-pre-action-hooks
`(;; commands that need to position point at the beginning or end
(eval-last-sexp embark--end-of-target)
(indent-pp-sexp embark--beginning-of-target)
(backward-up-list embark--beginning-of-target)
(backward-list embark--beginning-of-target)
(forward-list embark--end-of-target)
(forward-sexp embark--end-of-target)
(backward-sexp embark--beginning-of-target)
(raise-sexp embark--beginning-of-target)
(kill-sexp embark--beginning-of-target)
(mark-sexp embark--beginning-of-target)
(transpose-sexps embark--end-of-target)
(transpose-sentences embark--end-of-target)
(transpose-paragraphs embark--end-of-target)
(forward-sentence embark--end-of-target)
(backward-sentence embark--beginning-of-target)
(backward-paragraph embark--beginning-of-target)
(embark-insert embark--end-of-target)
;; commands we want to be able to jump back from
;; (embark-find-definition achieves this by calling
;; xref-find-definitions which pushes the markers itself)
(find-library embark--xref-push-marker)
;; commands which prompt the user for confirmation before running
(delete-file embark--confirm)
(delete-directory embark--confirm)
(kill-buffer embark--confirm)
(embark-kill-buffer-and-window embark--confirm)
(bookmark-delete embark--confirm)
(package-delete embark--confirm)
(tab-bar-close-tab-by-name embark--confirm)
;; search for region contents outside said region
(embark-isearch-forward embark--unmark-target)
(embark-isearch-backward embark--unmark-target)
(occur embark--unmark-target)
(query-replace embark--beginning-of-target embark--unmark-target)
(query-replace-regexp embark--beginning-of-target embark--unmark-target)
(replace-string embark--beginning-of-target embark--unmark-target)
(replace-regexp embark--beginning-of-target embark--unmark-target)
;; mark pseudo-action
(mark embark--mark-target)
;; shells in new buffers
(shell embark--universal-argument)
(eshell embark--universal-argument))
"Alist associating commands with pre-action hooks.
The hooks are run right before an action is embarked upon. See
`embark-target-injection-hooks' for information about the hook
arguments and more details."
:type '(alist :key-type
(choice symbol
(const :tag "Default" t)
(const :tag "Always" :always))
:value-type hook))