From 85106bba286860d8b4ef17cdc26ba9b79d018da6 Mon Sep 17 00:00:00 2001 From: Artur Manuel Date: Fri, 22 Nov 2024 06:52:09 +0000 Subject: [PATCH] feat: use use-package hooks rather than initialisation hooks --- emacs/config.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/emacs/config.el b/emacs/config.el index a32d851..3271761 100644 --- a/emacs/config.el +++ b/emacs/config.el @@ -71,9 +71,9 @@ (c-basic-offset 4)) (use-package eat - :init - (add-hook 'eshell-load-hook #'eat-eshell-mode) - (add-hook 'eshell-load-hook #'eat-eshell-visual-command-mode) + :hook (eshell-load . (lambda () + (eat-eshell-mode) + (eat-eshell-visual-command-mode))) :bind (("C-c t" . eat) ("C-x p t" . eat-project)))