diff options
author | Thanos Apollo <[email protected]> | 2023-07-16 16:27:34 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-07-16 16:27:34 +0300 |
commit | d0220a6d38f8eef32609eb92507fc0e1956cbeb5 (patch) | |
tree | 6bd5330c803edb5370d8f9a84679b769514057d9 /emacs.org | |
parent | c32802221611b812bfdc32b91bce448c92e7378c (diff) |
Add (smtp-get-pass)
Diffstat (limited to 'emacs.org')
-rwxr-xr-x | emacs.org | 17 |
1 files changed, 14 insertions, 3 deletions
@@ -237,11 +237,22 @@ Fonts and basic appearance settings for each device (setq counsel-describe-variable-function #'helpful-variable) #+end_src * Pass +** Misc Functions +#+begin_src emacs-lisp + (defun smtp-get-pass () + (interactive) + "get password for smtp" + (insert + (password-store-get-field "fastmail.com/[email protected]" "smtp"))) +#+end_src ** Keybindings #+begin_src emacs-lisp - (global-set-key (kbd "C-c p i") 'password-store-insert) - (global-set-key (kbd "C-c p e") 'password-store-edit) - (global-set-key (kbd "C-c p g") 'password-store-generate) + (define-prefix-command 'thanos/pass) + (global-set-key (kbd "C-c p") 'thanos/pass) + (define-key thanos/pass (kbd "i") 'password-store-insert) + (define-key thanos/pass (kbd "e") 'password-store-edit) + (define-key thanos/pass (kbd "g") 'password-store-generate) + (define-key thanos/pass (kbd "s") 'smtp-get-pass) #+end_src * Dired ** Functions |