From 6dacba03f7ad32e42fee83093f9ad30cdd6d1ba5 Mon Sep 17 00:00:00 2001 From: Ravachol Date: Mon, 26 Feb 2024 04:39:41 +0800 Subject: [PATCH] config pinentry --- init.el | 1 + lisp/init-gpg.el | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 lisp/init-gpg.el diff --git a/init.el b/init.el index 1686bfb..67cc0c8 100644 --- a/init.el +++ b/init.el @@ -38,6 +38,7 @@ (require 'init-paredit) ;; version control +(require 'init-gpg) (require 'init-magit) ;; language support diff --git a/lisp/init-gpg.el b/lisp/init-gpg.el new file mode 100644 index 0000000..9e9a42b --- /dev/null +++ b/lisp/init-gpg.el @@ -0,0 +1,12 @@ +;;; init-gpg.el --- GnuPG support -*- lexical-binding: t -*- +;;; Commentary: +;;; Code: + +(use-package pinentry + :ensure t + :config + (setq epa-pinentry-mode 'loopback) + (pinentry-start)) + +(provide 'init-gpg) +;;; init-gpg.el ends here