Improve user experience when scrolling window.
Normally scroll up/down will move the cursor to the window boundary corresponding to the direction on how the window scrolls. This package provides it's own scrolling functions that will preserve cursor's position.
|Normal||With Better Scroll|
There are total 4 interactive functions in this package.
I will recommend to bind these function to global keys like the snippet below.
(define-key global-map (kbd "<prior>") #better-scroll-down) (define-key global-map (kbd "<next>") #better-scroll-up) (define-key global-map (kbd "S-<prior>") #better-scroll-down-other-window) (define-key global-map (kbd "S-<next>") #better-scroll-up-other-window)
<next> is corresponds to
page up and
page down key.
You can set the cursor aligment by tweaking
(setq better-scroll-align-type 'center) ; 'center or 'relative
If you would like to contribute to this project, you may either clone and make pull requests to this repository. Or you can clone the project and establish your own branch of this tool. Any methods are welcome!