2017-06-11 02:26:51 +02:00
|
|
|
;;; tools/password-store/config.el -*- lexical-binding: t; -*-
|
|
|
|
|
|
|
|
(def-package! password-store
|
|
|
|
:config
|
|
|
|
(setq password-store-password-length 12))
|
|
|
|
|
|
|
|
|
2017-06-11 16:40:57 +02:00
|
|
|
(def-package! pass
|
|
|
|
:commands pass
|
2017-06-11 02:26:51 +02:00
|
|
|
:config
|
2017-06-11 16:40:57 +02:00
|
|
|
(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)))
|
|
|
|
|
2017-06-11 18:00:45 +02:00
|
|
|
|
|
|
|
(def-package! helm-pass
|
|
|
|
:when (featurep! :completion helm)
|
|
|
|
:commands helm-pass)
|