Replace fringes in eshell buffers with a margin

I think it looks better this way. Especially if you use solaire-mode.
This commit is contained in:
Henrik Lissner 2018-06-16 16:39:48 +02:00
parent aa1b203d1f
commit d9944bfc7f
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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)