From 8c7aaa64684ffa76a33e5cccb2f76524bb541df2 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 4 Jan 2020 17:12:09 -0500 Subject: [PATCH] scroll-conservatively = 101 #2217 --- core/core-ui.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/core-ui.el b/core/core-ui.el index f19f988b5..26f9b9d70 100644 --- a/core/core-ui.el +++ b/core/core-ui.el @@ -173,7 +173,12 @@ read-only or not file-visiting." (setq hscroll-margin 2 hscroll-step 1 - scroll-conservatively 10 + ;; Emacs spends too much effort recentering the screen if you scroll the + ;; cursor more than N lines past window edges (where N is the settings of + ;; `scroll-conservatively'). This is especially slow in larger files + ;; during large-scale scrolling commands. If kept over 100, the window is + ;; never automatically recentered. + scroll-conservatively 101 scroll-margin 0 scroll-preserve-screen-position t ;; Reduce cursor lag by a tiny bit by not auto-adjusting `window-vscroll'