From: rush Date: Wed, 16 Sep 2026 12:30:13 +0000 (-0400) Subject: Make the check for graphics (& thus the call to scroll-bar-mode) happen on frame... X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=8d934e77387159fbce11f1ad1cc872f8b009ae20;p=emacsinit.git 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. --- 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)