2021-02-21 02:59:11 +00:00
|
|
|
;; -*- lexical-binding: t; -*-
|
|
|
|
|
2021-03-09 14:23:54 +00:00
|
|
|
;; Transparently encrypt/decrypt gpg files
|
|
|
|
(add-hook 'after-init-hook #'epa-file-enable)
|
|
|
|
|
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
|
|
|
|
: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)
|