From e88bfb22af2b8e205ec831505b8247018de028bf Mon Sep 17 00:00:00 2001 From: Tu Do Date: Mon, 6 Apr 2015 10:11:26 +0700 Subject: [PATCH] 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. --- spacemacs/packages.el | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/spacemacs/packages.el b/spacemacs/packages.el index 1a22a8345..c432821a1 100644 --- a/spacemacs/packages.el +++ b/spacemacs/packages.el @@ -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)