refactor(eshell,term): move hscroll-margin settings

...out of core and into their respective modules. A tiny step toward
thinning out core.
This commit is contained in:
Henrik Lissner 2022-03-31 01:32:32 +02:00
parent 78ecc56ed3
commit 6185767c41
No known key found for this signature in database
GPG key ID: B60957CA074D39A3
3 changed files with 8 additions and 3 deletions

View file

@ -101,6 +101,10 @@ You should use `set-eshell-alias!' to change this.")
(add-hook 'eshell-mode-hook #'hide-mode-line-mode)
;; Remove hscroll-margin in shells, otherwise you get jumpiness when the
;; cursor comes close to the left/right edges of the window.
(setq-hook! 'eshell-mode-hook hscroll-margin 0)
;; Don't auto-write our aliases! Let us manage our own `eshell-aliases-file'
;; or configure `+eshell-aliases' via elisp.
(advice-add #'eshell-write-aliases-list :override #'ignore)

View file

@ -9,3 +9,7 @@
(setq multi-term-dedicated-window-height 20
multi-term-switch-after-close 'PREVIOUS
multi-term-buffer-name "doom:terminal")
;; Remove hscroll-margin in shells, otherwise you get jumpiness when the cursor
;; comes close to the left/right edges of the window.
(setq-hook! 'term-mode-hook hscroll-margin 0)