Function: eshell-smart-initialize
eshell-smart-initialize is a byte-compiled function defined in
em-smart.el.gz.
Signature
(eshell-smart-initialize)
Documentation
Setup Eshell smart display.
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/em-smart.el.gz
;;; Functions:
(defun eshell-smart-initialize () ;Called from `eshell-mode' via intern-soft!
"Setup Eshell smart display."
(unless eshell-non-interactive-p
;; override a few variables, since they would interfere with the
;; smart display functionality.
(setq-local eshell-scroll-to-bottom-on-output nil)
(setq-local eshell-scroll-to-bottom-on-input nil)
(setq-local eshell-scroll-show-maximum-output t)
(add-hook 'window-configuration-change-hook 'eshell-smart-scroll nil t)
(add-hook 'eshell-output-filter-functions 'eshell-smart-scroll-windows 90 t)
(add-hook 'after-change-functions 'eshell-disable-after-change nil t)
(add-hook 'eshell-input-filter-functions 'eshell-smart-display-setup nil t)
(make-local-variable 'eshell-smart-command-done)
(add-hook 'eshell-post-command-hook
(lambda ()
(setq eshell-smart-command-done t))
t t)
(unless (eq eshell-review-quick-commands t)
(add-hook 'eshell-post-command-hook
'eshell-smart-maybe-jump-to-end nil t))))