Variable: epg-gpg-program

epg-gpg-program is a customizable variable defined in epg-config.el.gz.

Value

"gpg"

Documentation

Say what gpg program to prefer (if it satisfies minimum requirements).

If this variable is "gpg2", but the version of gpg2 installed is less than epg-gpg2-minimum-version, then version 1 of GnuPG (i.e., "gpg") will be used instead. If the version of version 1 is less than epg-gpg-minimum-version, then that won't be used either.

If you want to explicitly specify what gpg program to use, you have to use M-x customize (customize) instead (see the info node (emacs)Easy Customization). Setting this variable without M-x customize (customize) has no effect.

This variable was added, or its default value changed, in Emacs 25.1.

Probably introduced at or before Emacs version 25.1.

Source Code

;; Defined in /usr/src/emacs/lisp/epg-config.el.gz
(defcustom epg-gpg-program (if (executable-find "gpg2")
                               "gpg2"
                             "gpg")
  "Say what gpg program to prefer (if it satisfies minimum requirements).

If this variable is \"gpg2\", but the version of gpg2 installed
is less than `epg-gpg2-minimum-version', then version 1 of
GnuPG (i.e., \"gpg\") will be used instead.  If the version of
version 1 is less than `epg-gpg-minimum-version', then that won't
be used either.

If you want to explicitly specify what gpg program to use, you
have to use \\[customize] instead (see the info node `Easy
Customization').  Setting this variable without \\[customize] has
no effect."
  :version "25.1"
  :type 'string)