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:
parent
aa1b203d1f
commit
d9944bfc7f
1 changed files with 8 additions and 0 deletions
|
@ -33,6 +33,14 @@
|
||||||
;; Consider eshell buffers real
|
;; Consider eshell buffers real
|
||||||
(add-hook 'eshell-mode-hook #'doom|mark-buffer-as-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
|
;; Keep track of open eshell buffers
|
||||||
(add-hook 'eshell-mode-hook #'+eshell|init)
|
(add-hook 'eshell-mode-hook #'+eshell|init)
|
||||||
(add-hook 'eshell-exit-hook #'+eshell|cleanup)
|
(add-hook 'eshell-exit-hook #'+eshell|cleanup)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue