summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2013-11-01 18:24:52 +0000
committerAlan Pearce2013-11-01 18:24:52 +0000
commit2bba1f9db56179f50a1c8b026353b057b5772bd0 (patch)
tree401b7a46eb57264fcb5fc4646bc0cf91a2c250a9 /emacs
parent604b55aac4676abb5be423b56c3964d9b4967119 (diff)
downloadnixfiles-2bba1f9db56179f50a1c8b026353b057b5772bd0.tar.lz
nixfiles-2bba1f9db56179f50a1c8b026353b057b5772bd0.tar.zst
nixfiles-2bba1f9db56179f50a1c8b026353b057b5772bd0.zip
Emacs: Improve mouse/trackpad scrolling by only scrolling one line at a time
Diffstat (limited to 'emacs')
-rw-r--r--emacs/init.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/emacs/init.el b/emacs/init.el
index bb701b58..a254dd86 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -1149,7 +1149,8 @@ Also returns nil if pid is nil."
 
 (setq scroll-conservatively 100 ; Keep the cursor position when scrolling
       scroll-margin 1
-      scroll-preserve-screen-position nil)
+      scroll-preserve-screen-position nil
+      mouse-wheel-scroll-amount '(1 ((shift) . 1) ((control))))
 
 (when menu-bar-mode
   (menu-bar-mode -1))