-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
smooth-scroll-margin vs scroll-margin #6097
Comments
This is my current workaround: (setq scroll-margin 1)
(setq smooth-scroll-margin 1) which avoids the jarring effect, and gets as close to 0 as allows smooth scrolling to still take effect. |
I'd also like to add that this behavior occurs with |
I've found I don't need to touch smooth-scroll-margin.
This will replicate evil scrolloff behavior pretty well in my experience. |
@agriffis try this:
|
@sooheon that works for me, thanks |
So we don't need smooth-scrolling ? |
In my recent experience, no. Those three default variables will do it for me, and often better: for example, at least for me, the way it behaves after some screenwise movements like |
I tried without smooth-scrolling and the result was not satisfying, the point is jumping depending on the responsiveness which is not the case with smooth-scrolling. I investigated to make smooth-scrolling to work with |
My tests show that scroll-conservatively does the job, need your feedback on this. See #6097
Since nobody complained in nine days I'm marking this as fixed. |
Fixed with released of Spacemacs v0.200. Let us know if you still have any problems with this issue. |
(I tried to report this within Spacemacs but it seems like [SPC h I] doesn't do anything from terminal emacs-client.)
The default setting for
smooth-scroll-margin
is 5, but the default forscroll-margin
is 0. This means that when one pressesC-f
to scroll forward by a page, the cursor is at the very top of the window according toscroll-margin
. Then pressing any key will adjust the scrolling forsmooth-scroll-margin
, which is a jarring experience every time.Furthermore, I tried to work around this by setting
smooth-scroll-margin 0
but that seems to disable smooth scrolling entirely, causing emacs to revert to the recentering behavior.System Info
The text was updated successfully, but these errors were encountered: