From 35489e23fe5165a38577ea0cdaac444cb155f095 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 5 Aug 2021 12:29:17 -0700 Subject: emacs: eshell smart display From https://www.masteringemacs.org/article/complete-guide-mastering-eshell --- emacs/custom/fcuny-eshell.el | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'emacs/custom') 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) -- cgit 1.4.1