From 3a773626c34af37650f9d016fc1467c1ae04f877 Mon Sep 17 00:00:00 2001 From: finga Date: Wed, 4 Sep 2024 11:36:19 +0200 Subject: [PATCH 1/2] ivy-pass: Use use-package's bind section instead of config --- .emacs.d/config/pass.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.emacs.d/config/pass.el b/.emacs.d/config/pass.el index 5c0c867..6b9aee5 100644 --- a/.emacs.d/config/pass.el +++ b/.emacs.d/config/pass.el @@ -1,8 +1,6 @@ (use-package ivy-pass :ensure t :init - ;; from https://github.com/ecraven/ivy-pass/blob/master/ivy-pass.el (setq password-store-password-length 32) - :config - ;; configure ivy-pass key binding - (global-set-key [?\C-x ?p] 'ivy-pass)) + :bind + ("C-x p" . ivy-pass)) From 19b5305e231c27e33e31960bafb258be5832626d Mon Sep 17 00:00:00 2001 From: finga Date: Wed, 4 Sep 2024 11:37:11 +0200 Subject: [PATCH 2/2] python: Use use-package's hook section instead of config --- .emacs.d/config/python.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.emacs.d/config/python.el b/.emacs.d/config/python.el index 2c06c33..ebd3269 100644 --- a/.emacs.d/config/python.el +++ b/.emacs.d/config/python.el @@ -3,5 +3,5 @@ (use-package flycheck-mypy :ensure t - :config - (add-hook 'python-mode-hook 'flycheck-mode)) + :hook + (python-mode . flycheck-mode))