disable scroll-bar-mode only when graphic

This commit is contained in:
Peter Tillemans 2025-06-10 01:13:41 +02:00
parent 801a020032
commit 626606ffbe

View file

@ -825,7 +825,8 @@ screen.
(interactive) (interactive)
(menu-bar-mode 1) (menu-bar-mode 1)
(tool-bar-mode -1) (tool-bar-mode -1)
(scroll-bar-mode -1)) (if (display-graphic-p)
(scroll-bar-mode -1)))
(add-hook 'after-make-frame-functions #'snm-display-tweaks) (add-hook 'after-make-frame-functions #'snm-display-tweaks)
;; run it in the current frame, because the hooks have already fired ;; run it in the current frame, because the hooks have already fired