;; -*- lexical-binding: t; -*- ;; Transparently encrypt/decrypt gpg files (add-hook 'after-init-hook #'epa-file-enable) ;; 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)