Fix eshell configuration
This commit is contained in:
parent
2eb9704bef
commit
1031d0478a
1 changed files with 9 additions and 2 deletions
|
@ -5,8 +5,15 @@
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
Truncate the eshell buffer when it gets larger than
|
Truncate the eshell buffer when it gets larger than
|
||||||
=eshell-buffer-maximum-lines= number of lines.
|
=eshell-buffer-maximum-lines= number of lines. For some reason I have
|
||||||
|
to use the =eshell-load-hook= instead of just relying on ~eshell.el~
|
||||||
|
and ~esh-mode.el~ being loaded because it seems that
|
||||||
|
=with-eval-after-load= loads this file before ~eshell.el~ is actually
|
||||||
|
loaded.
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(add-to-list 'eshell-output-filter-functions 'eshell-truncate-buffer)
|
(defun oni:enable-truncating-eshell-buffers ()
|
||||||
|
(add-to-list 'eshell-output-filter-functions 'eshell-truncate-buffer))
|
||||||
|
|
||||||
|
(add-hook 'eshell-load-hook #'oni:enable-truncating-eshell-buffers)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
Loading…
Reference in a new issue