Add password-store configuration
This commit is contained in:
parent
c4955c23ca
commit
224d016543
30
config.org
30
config.org
@ -314,3 +314,33 @@ needs to be set up to install them if they aren't already.
|
|||||||
(require 'exwm-config)
|
(require 'exwm-config)
|
||||||
(exwm-config-default))
|
(exwm-config-default))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
* Passwords
|
||||||
|
This was a little more work than I expected... =password-store=
|
||||||
|
provides a nice interface to =pass=:
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(use-package password-store)
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
However, in order for it to actually work, EasyPG had to be
|
||||||
|
configured to use loopback for pinentry.
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(setq epa-pinentry-mode 'loopback)
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
=gpg-agent= also had to be configured to allow loopback for
|
||||||
|
pinentry -- this was done by adding =allow-loopback-pinentry= to
|
||||||
|
[[file:~/.gnupg/gpg-agent.conf::allow-loopback-pinentry][gpg-agent.conf]].
|
||||||
|
|
||||||
|
With that all working, all that remains is to add a convenient
|
||||||
|
keybinding for getting a password, which is done by the function
|
||||||
|
=password-store-copy=. =C-c C-p= does conflict with /some/ modal
|
||||||
|
bindings, but I think that's fine as most of the time I'll need a
|
||||||
|
password it'll be in some X window anyway... and besides, =M-x
|
||||||
|
pass-co RET= isn't bad for when it does happen to conflict.
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(global-set-key (kbd "C-c C-p") 'password-store-copy)
|
||||||
|
#+end_src
|
||||||
|
Loading…
x
Reference in New Issue
Block a user