Which version of GnuPG are you using? I have 2.2.17 and it works with empty gpg-agent.conf and just this line in .emacs: (setq epg-pinentry-mode 'loopback) Filipp