From c37bd5f354c55e6f73181d2341d828c572cf57d1 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Wed, 2 Nov 2016 11:47:56 +0100 Subject: [PATCH] Add eshell configuration --- emacs/.emacs.d/init.org | 6 ++++++ emacs/.emacs.d/init/oni-eshell-init.org | 12 ++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 emacs/.emacs.d/init/oni-eshell-init.org diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org index 0a1b43a..32caaf7 100644 --- a/emacs/.emacs.d/init.org +++ b/emacs/.emacs.d/init.org @@ -947,6 +947,12 @@ To start off, first I need to enable lexical binding. (with-eval-after-load 'org (load "oni-org-init")) #+END_SRC + - [[file:init/oni-eshell-init.org][Eshell]] :: The best shell on the planet. + + #+BEGIN_SRC emacs-lisp + (with-eval-after-load 'eshell (load "oni-eshell-init")) + #+END_SRC + ** Linewise user-interface This is the library used by Circe and Slack to display messages. 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