From 9400da45f727a7cf81a9b74be4a9412196bb5254 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Thu, 7 Feb 2019 09:34:57 -0500 Subject: [PATCH] Improve some use-package declarations --- emacs/init.org | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/emacs/init.org b/emacs/init.org index 5261e27..2843318 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -119,25 +119,27 @@ Make undo not undo paragraphs at a time: * Password Store Interfacing with Pass, the "standard Unix password manager". This should also be loaded before `exec-path-from-shell`. #+BEGIN_SRC emacs-lisp + (defun password-store-synchronize () + (interactive) + (async-shell-command "pass git pull && pass git push")) + (use-package password-store + :if (executable-find "pass") :commands (password-store-list password-store-get password-store-copy) :config - (setq password-store-password-length 20)) - - (leader-def-key "p" 'password-store-copy) + (setq password-store-password-length 20) + (leader-def-key "p" 'password-store-copy)) (use-package pass + :if (executable-find "pass") :commands pass :general - (pass-mode-map "SPC" leader-map)) - - (leader-def-key "ap" 'pass) - - (defun password-store-synchronize () - (interactive) - (async-shell-command "pass git pull && pass git push")) + (pass-mode-map "SPC" leader-map) + (pass-mode-map "S" #'password-store-synchronize) + :config + (leader-def-key "ap" 'pass)) #+END_SRC * Emacs Lisp @@ -1652,9 +1654,8 @@ Desktop notifications for mu4e emails. " OR flag:unread maildir:/jeremy-getpterotype-com/Inbox")) (mu4e-alert-set-default-style (jdormit-get-mu4e-alert-style)) (mu4e-alert-enable-notifications) - (mu4e-alert-enable-mode-line-display)) - - (leader-def-key "amu" #'mu4e-alert-view-unread-mails) + (mu4e-alert-enable-mode-line-display) + (leader-def-key "amu" #'mu4e-alert-view-unread-mails)) #+END_SRC * w3m