From 9506cc9902e2fa72ec7542fb181f5449f29d05f9 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 29 Jul 2017 00:00:19 +0200 Subject: [PATCH] Take 2 on auth-store-pass detection in Emacs 26+ --- modules/tools/password-store/config.el | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/modules/tools/password-store/config.el b/modules/tools/password-store/config.el index 934862678..9782e7dd0 100644 --- a/modules/tools/password-store/config.el +++ b/modules/tools/password-store/config.el @@ -29,11 +29,14 @@ "C-k" #'pass-next-directory)) -(def-package! auth-password-store - :demand t - :config (auth-pass-enable)) - - (def-package! helm-pass :when (featurep! :completion helm) :commands helm-pass) + + +;; Is built into Emacs 26+ +(if (require 'auth-store-pass nil t) + (auth-source-pass-enable) + (def-package! auth-password-store + :demand t + :config (auth-pass-enable)))