Compare commits

..

2 Commits

Author SHA1 Message Date
Jeremy Dormitzer
0e0918cfaf Integrate pass 2021-02-20 11:12:47 -05:00
Jeremy Dormitzer
91e0dd86aa Install forge 2021-02-20 11:12:26 -05:00
3 changed files with 35 additions and 2 deletions

View File

@ -0,0 +1,27 @@
;; 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)

View File

@ -1,10 +1,11 @@
;; Magit!
(use-package magit
:init
(leader-def-key "g" '(nil :which-key "git"))
:config
(evil-collection-magit-setup)
:general
(leader-map "g" '(nil :which-key "git")
"gs" #'magit-status
(leader-map "gs" #'magit-status
"gg" #'magit-file-dispatch
"gd" #'magit-dispatch))
@ -29,4 +30,8 @@
"gc" #'git-link-commit
"gb" #'git-link-browse-commit))
;; Interact with GitHub etc. from Magit
(use-package forge
:after magit)
(provide 'init-git)

View File

@ -27,6 +27,7 @@
(require 'init-defaults)
(require 'init-evil)
(require 'init-keybindings)
(require 'init-auth)
(require 'init-dashboard)
(require 'init-dotfiles)
(require 'init-buffers)