summary refs log tree commit diff
path: root/emacs/custom
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2021-10-17 11:28:00 -0700
committerFranck Cuny <franck@fcuny.net>2021-10-17 11:28:00 -0700
commitb2f9681bac37758f4fde0f078c2db2a2c438b1cc (patch)
tree0e1a888e59791c5d5a6a80300f412899bcb21a83 /emacs/custom
parentfcuny: remove unused org functions (diff)
downloademacs.d-b2f9681bac37758f4fde0f078c2db2a2c438b1cc.tar.gz
emacs: be explicit about eshell modules we load
Diffstat (limited to 'emacs/custom')
-rw-r--r--emacs/custom/fcuny-eshell.el30
1 files changed, 26 insertions, 4 deletions
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)