all repos — nixfiles @ 2bba1f9db56179f50a1c8b026353b057b5772bd0

System and user configuration, managed by nix and home-manager

Emacs: Improve mouse/trackpad scrolling by only scrolling one line at a time
Alan Pearce alan@alanpearce.co.uk
Fri, 01 Nov 2013 18:24:52 +0000
commit

2bba1f9db56179f50a1c8b026353b057b5772bd0

parent

604b55aac4676abb5be423b56c3964d9b4967119

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M emacs/init.elemacs/init.el
@@ -1149,7 +1149,8 @@ "%b")))) 
 (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))