2017-05-19 03:00:49 +00:00
|
|
|
;;; packages.el --- Passwords Layer packages File for Spacemacs
|
|
|
|
;;
|
2020-09-16 21:34:40 +00:00
|
|
|
;; Copyright (c) 2012-2020 Sylvain Benner & Contributors
|
2017-05-19 03:00:49 +00:00
|
|
|
;;
|
|
|
|
;; Author: Andrew Oppenlander <andrew.oppenlander@gmail.com>
|
|
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
|
|
;;
|
|
|
|
;; This file is not part of GNU Emacs.
|
|
|
|
;;
|
|
|
|
;;; License: GPLv3
|
2015-10-13 02:29:55 +00:00
|
|
|
|
2018-03-27 01:55:51 +00:00
|
|
|
(setq pass-packages
|
|
|
|
'(
|
2018-09-08 14:34:46 +00:00
|
|
|
(ivy-pass :requires ivy)
|
2018-03-27 01:55:51 +00:00
|
|
|
(helm-pass :requires helm)
|
2020-09-18 19:11:58 +00:00
|
|
|
auth-source-pass
|
2018-03-27 01:55:51 +00:00
|
|
|
password-store
|
2020-09-18 19:11:58 +00:00
|
|
|
password-store-otp
|
2018-03-27 01:55:51 +00:00
|
|
|
))
|
|
|
|
|
|
|
|
(defun pass/init-helm-pass ()
|
2018-09-08 14:34:46 +00:00
|
|
|
(use-package helm-pass
|
|
|
|
:defer t
|
2020-06-21 22:04:52 +00:00
|
|
|
:init (spacemacs/set-leader-keys "atP/" 'helm-pass)))
|
2018-09-08 14:34:46 +00:00
|
|
|
|
|
|
|
(defun pass/init-ivy-pass ()
|
|
|
|
(use-package ivy-pass
|
|
|
|
:defer t
|
2020-06-21 22:04:52 +00:00
|
|
|
:init (spacemacs/set-leader-keys "atP/" 'ivy-pass)))
|
2015-10-13 02:29:55 +00:00
|
|
|
|
|
|
|
(defun pass/init-password-store ()
|
|
|
|
(use-package password-store
|
2018-03-04 04:37:53 +00:00
|
|
|
:defer t
|
2015-10-13 02:29:55 +00:00
|
|
|
:init
|
|
|
|
(progn
|
2020-06-21 22:04:52 +00:00
|
|
|
(spacemacs/declare-prefix "atP" "pass")
|
2020-04-17 22:27:49 +00:00
|
|
|
(spacemacs/set-leader-keys
|
2020-06-21 22:04:52 +00:00
|
|
|
"atPy" 'password-store-copy
|
|
|
|
"atPg" 'password-store-generate
|
|
|
|
"atPi" 'password-store-insert
|
|
|
|
"atPc" 'password-store-edit
|
|
|
|
"atPr" 'password-store-rename
|
|
|
|
"atPd" 'password-store-remove
|
|
|
|
"atPD" 'password-store-clear
|
|
|
|
"atPI" 'password-store-init
|
|
|
|
"atPw" 'password-store-url
|
|
|
|
"atP?" 'spacemacs/pass-describe
|
|
|
|
"atPY" 'spacemacs/pass-copy-and-describe))))
|
2020-09-18 19:11:58 +00:00
|
|
|
|
|
|
|
(defun pass/init-password-store-otp ()
|
|
|
|
(use-package password-store-otp
|
|
|
|
:defer t
|
|
|
|
:init
|
|
|
|
(progn
|
|
|
|
(spacemacs/declare-prefix "atPo" "otp")
|
|
|
|
(spacemacs/set-leader-keys
|
|
|
|
"atPoy" 'password-store-otp-token-copy
|
|
|
|
"atPoY" 'password-store-otp-uri-copy
|
|
|
|
"atPoi" 'password-store-otp-insert
|
|
|
|
"atPoa" 'password-store-otp-append
|
|
|
|
"atPoA" 'password-store-otp-append-from-image))))
|
|
|
|
|
|
|
|
(defun pass/init-auth-source-pass ()
|
|
|
|
(use-package auth-source-pass
|
|
|
|
:after auth-source
|
|
|
|
:config
|
|
|
|
(auth-source-pass-enable)))
|