Variable: magit-openpgp-default-signing-key

magit-openpgp-default-signing-key is a customizable variable defined in magit.el.

Value

nil

Documentation

Fingerprint of your default Openpgp key used for signing.

If the specified primary key has signing capacity then it is used as the value of the --gpg-sign argument without prompting, even when other such keys exist. To be able to select another key you must then use a prefix argument.

This variable was added, or its default value changed, in magit version 4.0.0.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit.el
;;; Options

(defcustom magit-openpgp-default-signing-key nil
  "Fingerprint of your default Openpgp key used for signing.
If the specified primary key has signing capacity then it is used
as the value of the `--gpg-sign' argument without prompting, even
when other such keys exist.  To be able to select another key you
must then use a prefix argument."
  :package-version '(magit . "4.0.0")
  :group 'magit-commands
  :type 'string)