Variable: sops-before-encrypt-hook
sops-before-encrypt-hook is a customizable variable defined in
sops.el.
Value
nil
Documentation
Hook run before each sops encrypt invocation.
Runs in the buffer being encrypted; the variable buffer-file-name(var)/buffer-file-name(fun)
holds the target file's path. Use to set AWS_PROFILE, age key paths.
The hook fires unconditionally before sops--run.
Source Code
;; Defined in /nix/store/vihl6lkzddv9xrsrsznvqdjq27g2i30p-emacs-packages-deps/share/emacs/site-lisp/elpa/sops-20260920.2121/sops.el
(defcustom sops-before-encrypt-hook nil
"Hook run before each sops encrypt invocation.
Runs in the buffer being encrypted; the variable `buffer-file-name'
holds the target file's path. Use to set `AWS_PROFILE', age key paths.
The hook fires unconditionally before `sops--run'."
:type 'hook
:group 'sops)