feat: use use-package hooks rather than initialisation hooks

This commit is contained in:
Artur Manuel 2024-11-22 06:52:09 +00:00
commit 85106bba28

View file

@ -71,9 +71,9 @@
(c-basic-offset 4)) (c-basic-offset 4))
(use-package eat (use-package eat
:init :hook (eshell-load . (lambda ()
(add-hook 'eshell-load-hook #'eat-eshell-mode) (eat-eshell-mode)
(add-hook 'eshell-load-hook #'eat-eshell-visual-command-mode) (eat-eshell-visual-command-mode)))
:bind (("C-c t" . eat) :bind (("C-c t" . eat)
("C-x p t" . eat-project))) ("C-x p t" . eat-project)))