Change scroll-conservatively to 10

This commit is contained in:
James Cherti
2025-08-25 15:13:53 -04:00
parent 2fd068149a
commit 80813db2d5

View File

@@ -272,9 +272,10 @@
;; Keep screen position if scroll command moved it vertically out of the window. ;; Keep screen position if scroll command moved it vertically out of the window.
(setq scroll-preserve-screen-position t) (setq scroll-preserve-screen-position t)
;; If `scroll-conservatively' is set above 100, the window is never ;; Emacs recenters the window when the cursor moves past `scroll-conservatively'
;; automatically recentered, which decreases the time spend recentering. ;; lines beyond the window edge. A value over 101 disables recentering; the
(setq scroll-conservatively 101) ;; 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. ;; 1. Preventing automatic adjustments to `window-vscroll' for long lines.
;; 2. Resolving the issue of random half-screen jumps during scrolling. ;; 2. Resolving the issue of random half-screen jumps during scrolling.