doomemacs/modules/tools/password-store/config.el

37 lines
858 B
EmacsLisp
Raw Normal View History

;;; tools/password-store/config.el -*- lexical-binding: t; -*-
(defvar +pass-user-fields '("login" "user" "username" "email")
"A list of fields for `+pass/ivy' to search for the username.")
(defvar +pass-url-fields '("url" "site" "location")
"A list of fields for `+pass/ivy' to search for the username.")
;;
;; Plugins
;;
;; `password-store'
(setq password-store-password-length 12)
;; `pass'
2017-06-11 22:40:57 +08:00
(def-package! pass
:defer t
:config
2017-06-11 22:40:57 +08:00
(set! :evil-state 'pass-mode 'emacs)
(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))
;; Is built into Emacs 26+
(when (and EMACS26+ (featurep! +auth))
(auth-source-pass-enable))