doomemacs/modules/term/term/config.el
Henrik Lissner 6185767c41
refactor(eshell,term): move hscroll-margin settings
...out of core and into their respective modules. A tiny step toward
thinning out core.
2022-03-31 14:05:45 +02:00

15 lines
521 B
EmacsLisp

;;; term/term/config.el -*- lexical-binding: t; -*-
;;;###package term
(add-hook 'term-mode-hook #'doom-mark-buffer-as-real-h)
(add-hook 'term-mode-hook #'hide-mode-line-mode)
;;;###package multi-term
(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)