From d9944bfc7fb77d65d964278d212142343e59f100 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 16 Jun 2018 16:39:48 +0200 Subject: [PATCH] Replace fringes in eshell buffers with a margin I think it looks better this way. Especially if you use solaire-mode. --- modules/emacs/eshell/config.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/emacs/eshell/config.el b/modules/emacs/eshell/config.el index f5c61bab0..4d3d45dc2 100644 --- a/modules/emacs/eshell/config.el +++ b/modules/emacs/eshell/config.el @@ -33,6 +33,14 @@ ;; Consider eshell buffers real (add-hook 'eshell-mode-hook #'doom|mark-buffer-as-real) + ;; UI enhancements + (defun +eshell|replace-fringes-with-margins () + "Remove eshell's fringes and give it a margin of 1." + (set-window-fringes nil 0 0) + (set-window-margins nil 1 1)) + (add-hook 'eshell-mode-hook #'+eshell|replace-fringes-with-margins) + (add-hook 'eshell-mode-hook #'hide-mode-line-mode) + ;; Keep track of open eshell buffers (add-hook 'eshell-mode-hook #'+eshell|init) (add-hook 'eshell-exit-hook #'+eshell|cleanup)