tools/password-store: refactor
This commit is contained in:
parent
66cfbb2563
commit
2b3311faa2
1 changed files with 22 additions and 11 deletions
|
@ -4,16 +4,27 @@
|
|||
:config
|
||||
(setq password-store-password-length 12))
|
||||
|
||||
(def-package! pass
|
||||
:commands (pass)
|
||||
:bind (:map pass-mode-map
|
||||
("j" . pass-next-entry)
|
||||
("k" . pass-prev-entry)
|
||||
("d" . pass-kill)
|
||||
("C-j" . pass-next-directory)
|
||||
("C-k" . pass-next-directory)))
|
||||
|
||||
(def-package! auth-password-store
|
||||
:demand t
|
||||
(def-package! pass
|
||||
:commands pass
|
||||
:config
|
||||
(auth-pass-enable))
|
||||
(set! :evil-state 'pass-mode 'emacs)
|
||||
(set! :popup "*Password-Store*" :align 'left :size 32 :select t :autokill t :noesc t)
|
||||
(map! :map pass-mode-map
|
||||
"j" #'pass-next-entry
|
||||
"k" #'pass-prev-entry
|
||||
"d" #'pass-kill
|
||||
"C-j" #'pass-next-directory
|
||||
"C-k" #'pass-next-directory))
|
||||
|
||||
|
||||
(cond ((version< emacs-version "26")
|
||||
;; included with `pass'
|
||||
(def-package! auth-password-store
|
||||
:demand t
|
||||
:config (auth-pass-enable)))
|
||||
|
||||
(t ;; built into Emacs 26
|
||||
(require 'auth-store-pass)
|
||||
(auth-source-pass-enable)))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue