tweak: scroll-conservatively = 10
Forces the window to recenter if the cursor moves >=10 lines off-screen. This makes some of our manual recentering elsewhere unnecessary.
This commit is contained in:
parent
a7123bf65f
commit
f427c8a30e
6 changed files with 5 additions and 16 deletions
|
@ -156,8 +156,10 @@ or if the current buffer is read-only or not file-visiting."
|
|||
;; 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
|
||||
;; never automatically recentered. The default (0) triggers this too
|
||||
;; aggressively, so I've set it to 10 to recenter if scrolling too far
|
||||
;; off-screen.
|
||||
scroll-conservatively 10
|
||||
scroll-margin 0
|
||||
scroll-preserve-screen-position t
|
||||
;; Reduce cursor lag by a tiny bit by not auto-adjusting `window-vscroll'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue