From 2005cf7e2fe57f2b89d776a15c988f4aeaea777b Mon Sep 17 00:00:00 2001 From: Wang Chunye Date: Sat, 21 Mar 2020 06:53:50 -0700 Subject: [PATCH] require mwheel --- init.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/init.el b/init.el index 6a673c7..1b0185a 100644 --- a/init.el +++ b/init.el @@ -41,7 +41,8 @@ :straight (xt-mouse :type built-in) :when (not (display-graphic-p)) :defer 2 - :config (xterm-mouse-mode 1)) + :config (xterm-mouse-mode 1) + (require 'mwheel)) (setq ;; I prefer split horizontally. @@ -50,10 +51,9 @@ scroll-step 1) ;; scroll one line at a time (less "jumpy" than defaults) (use-package mwheel - :after (mwheel) - :functions (mouse-wheel-mode) - :defer 1 :straight (mwheel :type built-in) + :functions (mouse-wheel-mode) + :defer t :defines (mouse-wheel-scroll-amount mouse-wheel-progressive-speed mouse-wheel-follow-mouse) :config (setq mouse-wheel-scroll-amount '(1 ((shift) . 1))) ;; one line at a time