I am new to emacs and I am using evil mode.
When I scroll with j,k and I move out of the screen, emacs will readjust the current line under the cursor to the middle of the screen.
Where can I disable this feature?
I am new to emacs and I am using evil mode.
When I scroll with j,k and I move out of the screen, emacs will readjust the current line under the cursor to the middle of the screen.
Where can I disable this feature?
By adding the following setting to the .emacs
file (or similar user customization file -- e.g., init.el
), the user can override the default setting that recenters point as it moves off the screen:
(setq scroll-conservatively 101)
The doc-string for scroll-conservatively
, which is visible by typing M-x describe-variable RET scroll-conservatively RET
reads as follows (at least in so far as a developer snapshot of Emacs Trunk goes, that is):
"If the value is greater than 100, redisplay will never recenter point, but will always scroll just enough text to bring point into view, even if you move far away. A value of zero means always recenter point if it moves off screen."