Change scroll-conservatively to 10
This commit is contained in:
12
init.el
12
init.el
@@ -240,10 +240,14 @@
|
|||||||
;; window.
|
;; window.
|
||||||
(setq scroll-preserve-screen-position t)
|
(setq scroll-preserve-screen-position t)
|
||||||
|
|
||||||
;; Setting `scroll-conservatively' to a high number like 10000 makes Emacs only
|
;; Emacs spends excessive time recentering the screen when the cursor moves more
|
||||||
;; scroll a little bit to bring your cursor back into view, minimizing
|
;; than N lines past the window edges (where N is the value of
|
||||||
;; unnecessary page movements.
|
;; `scroll-conservatively`). This can be particularly slow in larger files
|
||||||
(setq scroll-conservatively 10000)
|
;; during extensive scrolling. If `scroll-conservatively` is set above 100, the
|
||||||
|
;; window is never automatically recentered. The default value of 0 triggers
|
||||||
|
;; recentering too aggressively. Setting it to 10 reduces excessive recentering
|
||||||
|
;; and only recenters the window when scrolling significantly off-screen.
|
||||||
|
(setq scroll-conservatively 10)
|
||||||
|
|
||||||
;; Enables smooth scrolling by making Emacs scroll the window by 1 line whenever
|
;; Enables smooth scrolling by making Emacs scroll the window by 1 line whenever
|
||||||
;; the cursor moves off the visible screen.
|
;; the cursor moves off the visible screen.
|
||||||
|
|||||||
Reference in New Issue
Block a user