2017-06-11 08:26:51 +08:00
|
|
|
;;; tools/password-store/config.el -*- lexical-binding: t; -*-
|
|
|
|
|
2017-06-12 00:01:03 +08:00
|
|
|
(defvar +pass-user-fields '("login" "user" "username" "email")
|
|
|
|
"A list of fields for `+pass/ivy' to search for the username.")
|
|
|
|
|
2017-06-12 08:38:16 +08:00
|
|
|
(defvar +pass-url-fields '("url" "site" "location")
|
|
|
|
"A list of fields for `+pass/ivy' to search for the username.")
|
|
|
|
|
2017-06-12 00:01:03 +08:00
|
|
|
|
|
|
|
;;
|
|
|
|
;; Plugins
|
|
|
|
;;
|
|
|
|
|
2017-06-11 08:26:51 +08:00
|
|
|
(def-package! password-store
|
2017-12-09 11:33:12 +08:00
|
|
|
:defer t
|
2017-06-11 08:26:51 +08:00
|
|
|
:config
|
|
|
|
(setq password-store-password-length 12))
|
|
|
|
|
|
|
|
|
2017-06-11 22:40:57 +08:00
|
|
|
(def-package! pass
|
|
|
|
:commands pass
|
2017-06-11 08:26:51 +08:00
|
|
|
:config
|
2017-06-11 22:40:57 +08:00
|
|
|
(set! :evil-state 'pass-mode 'emacs)
|
2018-01-07 18:39:28 +08:00
|
|
|
(set! :popup "^\\*Password-Store" '((side . left) (size . 0.25)) '((quit)))
|
2017-06-11 22:40:57 +08:00
|
|
|
(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))
|
|
|
|
|
|
|
|
|
2017-06-12 00:00:45 +08:00
|
|
|
(def-package! helm-pass
|
|
|
|
:when (featurep! :completion helm)
|
|
|
|
:commands helm-pass)
|
2017-07-29 06:00:19 +08:00
|
|
|
|
|
|
|
|
|
|
|
;; Is built into Emacs 26+
|
2018-03-28 10:37:43 +08:00
|
|
|
(def-package! auth-source-pass
|
|
|
|
:when (featurep! +auth)
|
|
|
|
:config (auth-source-pass-enable))
|