Fix auth-store-pass error in Emacs 26+ #146
This commit is contained in:
parent
38f842f186
commit
b7776b7f7b
2 changed files with 9 additions and 9 deletions
|
@ -29,14 +29,14 @@
|
|||
"C-k" #'pass-next-directory))
|
||||
|
||||
|
||||
(cond ((version< emacs-version "26")
|
||||
;; included with `pass'
|
||||
(require 'auth-password-store)
|
||||
(auth-pass-enable))
|
||||
|
||||
(t ;; built into Emacs 26
|
||||
(require 'auth-store-pass)
|
||||
(auth-source-pass-enable)))
|
||||
(cond ((package-built-in-p 'auth-store-pass) ; built into Emacs 26
|
||||
(def-package! auth-store-pass
|
||||
:demand t
|
||||
:config (auth-source-pass-enable)))
|
||||
(t
|
||||
(def-package! auth-password-store
|
||||
:demand t
|
||||
:config (auth-pass-enable))))
|
||||
|
||||
|
||||
(def-package! helm-pass
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
(package! pass)
|
||||
(package! password-store)
|
||||
|
||||
(when (version< emacs-version "26")
|
||||
(unless (package-built-in-p 'auth-store-pass)
|
||||
(package! auth-password-store))
|
||||
|
||||
(when (featurep! :completion helm)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue