From 80813db2d57d3243891189602a91b5ce25576bdb Mon Sep 17 00:00:00 2001 From: James Cherti <60946298+jamescherti@users.noreply.github.com> Date: Mon, 25 Aug 2025 15:13:53 -0400 Subject: [PATCH] Change scroll-conservatively to 10 --- init.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/init.el b/init.el index 937cf7b..8711f3f 100644 --- a/init.el +++ b/init.el @@ -272,9 +272,10 @@ ;; Keep screen position if scroll command moved it vertically out of the window. (setq scroll-preserve-screen-position t) -;; If `scroll-conservatively' is set above 100, the window is never -;; automatically recentered, which decreases the time spend recentering. -(setq scroll-conservatively 101) +;; Emacs recenters the window when the cursor moves past `scroll-conservatively' +;; lines beyond the window edge. A value over 101 disables recentering; the +;; default (0) is too eager. Here it is set to 10 for a balanced behavior. +(setq scroll-conservatively 10) ;; 1. Preventing automatic adjustments to `window-vscroll' for long lines. ;; 2. Resolving the issue of random half-screen jumps during scrolling.