dotfiles/emacs/.emacs.modular/config/init-auth.el

28 lines
661 B
EmacsLisp
Raw Normal View History

2021-02-20 16:12:47 +00:00
;; Get a nice interface to pass
(use-package pass
:commands pass
:init
(leader-def-key "P" '(nil :which-key "passwords"))
:config
(evil-collection-pass-setup)
(defun password-store-synchronize ()
(interactive)
(with-editor-async-shell-command "pass git pull && pass git push"))
:general
(leader-map "Pp" #'pass)
(normal pass-mode-map "S" #'password-store-synchronize))
(use-package password-store
:init
(epa-file-enable)
:general
(leader-map "Pg" #'password-store-copy)
:custom
(password-store-password-length 20))
;; Use pass as an auth source
(require 'auth-source-pass)
(auth-source-pass-enable)
(provide 'init-auth)