Improve smooth scrolling configuration
So when cursor is at the bottom, it won't suddenly jump half of a screen when move the cursor down.
This commit is contained in:
parent
4ceda4da2f
commit
e88bfb22af
|
@ -2671,9 +2671,12 @@ It is a string holding:
|
|||
;; this is not a conventional package
|
||||
;; no require are needed for this package everything is auto-loaded
|
||||
(if dotspacemacs-smooth-scrolling
|
||||
(setq smooth-scroll-margin 5
|
||||
scroll-conservatively 9999
|
||||
scroll-step 1)
|
||||
;; enable smooth scrolling
|
||||
(setq scroll-step 1
|
||||
scroll-conservatively 10000
|
||||
auto-window-vscroll nil
|
||||
smooth-scroll-margin 5)
|
||||
|
||||
;; deactivate the defadvice's
|
||||
(ad-disable-advice 'previous-line 'after 'smooth-scroll-down)
|
||||
(ad-activate 'previous-line)
|
||||
|
|
Loading…
Reference in a new issue