summary refs log tree commit diff stats
path: root/tag-emacs
diff options
context:
space:
mode:
Diffstat (limited to 'tag-emacs')
-rw-r--r--tag-emacs/emacs.d/init.org3
1 files changed, 2 insertions, 1 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org
index df5069c..ca111af 100644
--- a/tag-emacs/emacs.d/init.org
+++ b/tag-emacs/emacs.d/init.org
@@ -1289,7 +1289,8 @@ rather useful.
   (interactive)
   (if (not have-private-key)
       (message "ERROR: Private GPG key not found")
-    (unless (getenv "GPG_AGENT_INFO")
+    (unless (or (getenv "GPG_AGENT_INFO")
+                (getenv "SSH_AUTH_SOCK"))
       (start-process "gpg-agent" nil "gpg-agent" "--daemon")
       (setenv "SSH_AUTH_SOCK" gpg-agent-ssh-sock))
     (setq password-cache-expiry nil)