From 3e78dc20e04edc0e0968b84b6371bf4414b7f22b Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Wed, 4 Oct 2023 14:51:54 +0300 Subject: emacs: (shells) use use-package for eat --- .emacs.d/modules/thanos-shells.el | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to '.emacs.d') diff --git a/.emacs.d/modules/thanos-shells.el b/.emacs.d/modules/thanos-shells.el index f8aaa9f..c421f48 100644 --- a/.emacs.d/modules/thanos-shells.el +++ b/.emacs.d/modules/thanos-shells.el @@ -35,12 +35,15 @@ ;; configuration with eat (require 'eshell) -(require 'eat) (setf eshell-visual-commands '()) -(add-hook 'eshell-load-hook #'eat-eshell-mode) -(add-hook 'eshell-load-hook #'eat-eshell-visual-command-mode) +(use-package eat + :straight t + :hook + (eshell-mode . eat-eshell-mode) + (eshell-mode . eat-eshell-visual-command-mode)) + ;;;; sudo completion (defun pcomplete/sudo () "Completion rules for the `sudo' command." -- cgit v1.2.3