aboutsummaryrefslogtreecommitdiffstats
path: root/emacs/.emacs.d/init
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/.emacs.d/init')
-rw-r--r--emacs/.emacs.d/init/oni-eshell-init.org12
1 files changed, 12 insertions, 0 deletions
diff --git a/emacs/.emacs.d/init/oni-eshell-init.org b/emacs/.emacs.d/init/oni-eshell-init.org
new file mode 100644
index 0000000..185043c
--- /dev/null
+++ b/emacs/.emacs.d/init/oni-eshell-init.org
@@ -0,0 +1,12 @@
+#+TITLE: Eshell configuration
+
+#+BEGIN_SRC emacs-lisp
+ (require 'eshell)
+#+END_SRC
+
+Truncate the eshell buffer when it gets larger than
+=eshell-buffer-maximum-lines= number of lines.
+
+#+BEGIN_SRC emacs-lisp
+ (add-to-list 'eshell-output-filter-functions 'eshell-truncate-buffer)
+#+END_SRC