diff --git a/init.el b/init.el index 9d43446..44aae92 100644 --- a/init.el +++ b/init.el @@ -69,6 +69,9 @@ (when (and (> emacs-major-version 28) (native-comp-available-p)) (require 'init-native-comp)) +(when (require? 'pixel-scroll) + (require 'init-pixel-scroll)) + (require 'man-completion) @@ -78,8 +81,6 @@ (cua-mode 1) (save-place-mode 1) (show-paren-mode 1) -(pixel-scroll-mode 1) -(pixel-scroll-precision-mode 1) (menu-bar-mode 0) (scroll-bar-mode 0) (tool-bar-mode 0) diff --git a/init/pixel-scroll/init-pixel-scroll.el b/init/pixel-scroll/init-pixel-scroll.el new file mode 100644 index 0000000..c28440c --- /dev/null +++ b/init/pixel-scroll/init-pixel-scroll.el @@ -0,0 +1,10 @@ +(require 'pixel-scroll) + +(setq mouse-wheel-progressive-speed nil + pixel-dead-time 0 + pixel-wait 0 + pixel-resolution-fine-flag 10) + +(pixel-scroll-mode 1) + +(provide 'init-pixel-scroll)