Compare commits
2 Commits
9b5de3bd4e
...
0e0918cfaf
Author | SHA1 | Date | |
---|---|---|---|
|
0e0918cfaf | ||
|
91e0dd86aa |
27
emacs/.emacs.modular/config/init-auth.el
Normal file
27
emacs/.emacs.modular/config/init-auth.el
Normal 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)
|
@ -1,10 +1,11 @@
|
|||||||
;; Magit!
|
;; Magit!
|
||||||
(use-package magit
|
(use-package magit
|
||||||
|
:init
|
||||||
|
(leader-def-key "g" '(nil :which-key "git"))
|
||||||
:config
|
:config
|
||||||
(evil-collection-magit-setup)
|
(evil-collection-magit-setup)
|
||||||
:general
|
:general
|
||||||
(leader-map "g" '(nil :which-key "git")
|
(leader-map "gs" #'magit-status
|
||||||
"gs" #'magit-status
|
|
||||||
"gg" #'magit-file-dispatch
|
"gg" #'magit-file-dispatch
|
||||||
"gd" #'magit-dispatch))
|
"gd" #'magit-dispatch))
|
||||||
|
|
||||||
@ -29,4 +30,8 @@
|
|||||||
"gc" #'git-link-commit
|
"gc" #'git-link-commit
|
||||||
"gb" #'git-link-browse-commit))
|
"gb" #'git-link-browse-commit))
|
||||||
|
|
||||||
|
;; Interact with GitHub etc. from Magit
|
||||||
|
(use-package forge
|
||||||
|
:after magit)
|
||||||
|
|
||||||
(provide 'init-git)
|
(provide 'init-git)
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
(require 'init-defaults)
|
(require 'init-defaults)
|
||||||
(require 'init-evil)
|
(require 'init-evil)
|
||||||
(require 'init-keybindings)
|
(require 'init-keybindings)
|
||||||
|
(require 'init-auth)
|
||||||
(require 'init-dashboard)
|
(require 'init-dashboard)
|
||||||
(require 'init-dotfiles)
|
(require 'init-dotfiles)
|
||||||
(require 'init-buffers)
|
(require 'init-buffers)
|
||||||
|
Loading…
Reference in New Issue
Block a user