From 8d934e77387159fbce11f1ad1cc872f8b009ae20 Mon Sep 17 00:00:00 2001 From: rush Date: Wed, 16 Sep 2026 08:30:13 -0400 Subject: [PATCH] Make the check for graphics (& thus the call to scroll-bar-mode) happen on frame creation This makes it so that a client running can properly set the mode, even if client frames are in the terminal. --- init.el | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/init.el b/init.el index 8286657..160275a 100644 --- a/init.el +++ b/init.el @@ -840,11 +840,17 @@ If in org-mode, call `org-end-of-line' first." (progn (menu-bar-mode -1) (tool-bar-mode -1))) -(set-scroll-bar-mode (if (eq system-type 'windows-nt) nil 'left)) + +(add-hook 'after-make-frame-functions + (lambda () + (when (display-graphic-p) + (set-scroll-bar-mode (if (eq system-type 'windows-nt) + nil + 'left))))) (setq frame-title-format "%b" mouse-prefer-closest-glyph t - mouse-1-click-follows-link nil + mouse-1-click-follows-link () focus-follows-mouse t mouse-autoselect-window -0.25) -- 2.39.5