all repos — nixfiles @ 9b3795e88f398077e4be2f3949f26a22d2d6c327

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

Emacs: enable smooth scrolling on macOS
Alan Pearce alan@alanpearce.eu
Wed, 05 Oct 2022 22:30:24 +0200
commit

9b3795e88f398077e4be2f3949f26a22d2d6c327

parent

b0f9ab4e92ee0fbc329f9bc69702acfbb9c2bc77

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -92,6 +92,10 @@ (mapc 'frame-set-background-mode (frame-list))) 
 (setq font-lock-maximum-decoration '((t . 1)))
 
+(when (and (eq system-type 'darwin)
+           (fboundp #'mac-mouse-wheel-mode))
+  (mac-mouse-wheel-mode +1))
+
 ;;; Chrome
 (column-number-mode +1)
 (use-package doom-modeline