summary refs log tree commit diff
path: root/emacs
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2021-08-05 12:29:17 -0700
committerFranck Cuny <franck@fcuny.net>2021-08-05 12:29:17 -0700
commit35489e23fe5165a38577ea0cdaac444cb155f095 (patch)
tree792372b2c8d25f7e41e69919e8a971ca17282d63 /emacs
parentemacs: track command's execution time in eshell (diff)
downloademacs.d-35489e23fe5165a38577ea0cdaac444cb155f095.tar.gz
emacs: eshell smart display
From https://www.masteringemacs.org/article/complete-guide-mastering-eshell
Diffstat (limited to 'emacs')
-rw-r--r--emacs/custom/fcuny-eshell.el10
1 files changed, 9 insertions, 1 deletions
diff --git a/emacs/custom/fcuny-eshell.el b/emacs/custom/fcuny-eshell.el
index 6c268f0..6af78af 100644
--- a/emacs/custom/fcuny-eshell.el
+++ b/emacs/custom/fcuny-eshell.el
@@ -47,14 +47,22 @@ multiple eshell windows easier."
 
 (use-package eshell
   :hook ((eshell-mode . fcuny/eshell-mode-setup)
-         (eshell-mode . fcuny/eshell-current-command-time-track))
+         (eshell-mode . fcuny/eshell-current-command-time-track)
+         (eshell-mode . eshell-smart-initialize))
   :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)
   (eshell-hist-ignoredups t)
   (eshell-save-history-on-exit t)
   (eshell-prefer-lisp-functions nil)
+  (eshell-where-to-jump 'begin)
+  (eshell-review-quick-commands nil)
+  (eshell-smart-space-goes-to-end t)
   (eshell-destroy-buffer-when-process-dies t))
 
 (provide 'fcuny-eshell)