Skip to content

Commit

Permalink
require mwheel
Browse files Browse the repository at this point in the history
  • Loading branch information
Wang Chunye committed Mar 21, 2020
1 parent 779e129 commit 2005cf7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions init.el
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down

0 comments on commit 2005cf7

Please sign in to comment.