diff options
author | Amin Bandali <bandali@gnu.org> | 2019-01-16 23:00:15 -0500 |
---|---|---|
committer | Amin Bandali <bandali@gnu.org> | 2019-01-16 23:00:15 -0500 |
commit | 84f3ad81a0e768204d27e61d04fc15f31e942e65 (patch) | |
tree | 5199c569da4cf9799f036e9a7922414082ab23ef | |
parent | cbc4f6d44ecf6b01cff1b9fcbbffb559ac864c10 (diff) | |
download | configs-84f3ad81a0e768204d27e61d04fc15f31e942e65.tar.gz configs-84f3ad81a0e768204d27e61d04fc15f31e942e65.tar.xz configs-84f3ad81a0e768204d27e61d04fc15f31e942e65.zip |
[emacs] better scrolling (both keyboard and mouse)
also use the new (version<= "26.1" emacs-version) pixel-scroll-mode
-rw-r--r-- | init.org | 23 |
1 files changed, 21 insertions, 2 deletions
@@ -484,6 +484,27 @@ buffers and/or modes. (setq mouse-autoselect-window nil)) #+end_src +** Better scrolling (arguably) + +#+begin_src emacs-lisp +(setq ;; scroll-margin 1 + ;; scroll-conservatively 10000 + scroll-step 1 + scroll-conservatively 10 + scroll-preserve-screen-position 1) + +(use-feature mwheel + :defer 1 + :config + (setq mouse-wheel-scroll-amount '(1 ((shift) . 1)) ; one line at a time + mouse-wheel-progressive-speed nil ; don't accelerate scrolling + mouse-wheel-follow-mouse t)) ; scroll window under mouse + +(use-feature pixel-scroll + :defer 1 + :config (pixel-scroll-mode 1)) +#+end_src + ** Libraries #+begin_src emacs-lisp @@ -757,8 +778,6 @@ Some bindings for functions from built-in GNU Emacs packages: ("C-c o" . other-window) - ("C-c Q" . save-buffers-kill-terminal) - ("C-S-h C" . describe-char) ("C-S-h F" . describe-face) |