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:
parent
78ecc56ed3
commit
6185767c41
3 changed files with 8 additions and 3 deletions
|
@ -164,9 +164,6 @@ or if the current buffer is read-only or not file-visiting."
|
|||
mouse-wheel-scroll-amount '(2 ((shift) . hscroll))
|
||||
mouse-wheel-scroll-amount-horizontal 2)
|
||||
|
||||
;; Remove hscroll-margin in shells, otherwise it causes jumpiness
|
||||
(setq-hook! '(eshell-mode-hook term-mode-hook) hscroll-margin 0)
|
||||
|
||||
|
||||
;;
|
||||
;;; Cursor
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue