From b2f9681bac37758f4fde0f078c2db2a2c438b1cc Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 17 Oct 2021 11:28:00 -0700 Subject: emacs: be explicit about eshell modules we load --- emacs/custom/fcuny-eshell.el | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) (limited to 'emacs') diff --git a/emacs/custom/fcuny-eshell.el b/emacs/custom/fcuny-eshell.el index 36aa55e..2cd1455 100644 --- a/emacs/custom/fcuny-eshell.el +++ b/emacs/custom/fcuny-eshell.el @@ -1,4 +1,30 @@ (require 'eshell) +(require 'esh-mode) +(require 'esh-module) +(setq eshell-modules-list + '(eshell-alias + eshell-basic + eshell-cmpl + eshell-dirs + eshell-glob + eshell-hist + eshell-ls + eshell-pred + eshell-prompt + eshell-script + eshell-term + eshell-tramp + eshell-unix)) + +(require 'em-alias) +(require 'em-basic) +(require 'em-dirs) +(require 'em-glob) +(require 'em-hist) +(require 'em-smart) +(require 'em-term) +(require 'em-tramp) +(require 'em-prompt) (defun fcuny/eshell-mode-setup () (eshell/alias "e" "find-file $1") @@ -61,10 +87,6 @@ multiple eshell windows easier." (eshell-mode . eshell-smart-initialize)) :commands (eshell eshell-command) :bind (("C-c e h" . fcuny/eshell-here)) - :init - (require 'em-smart) - (require 'em-hist) - (require 'em-tramp) :custom (eshell-scroll-to-bottom-on-input 'all) (eshell-error-if-no-glob t) -- cgit 1.4.1