summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2022-10-05 22:30:24 +0200
committerAlan Pearce2022-10-08 01:34:14 +0200
commit9b3795e88f398077e4be2f3949f26a22d2d6c327 (patch)
treee9f4204577be65968fabf4ab0c1c1d2917606fbf /user
parentb0f9ab4e92ee0fbc329f9bc69702acfbb9c2bc77 (diff)
downloadnixfiles-9b3795e88f398077e4be2f3949f26a22d2d6c327.tar.lz
nixfiles-9b3795e88f398077e4be2f3949f26a22d2d6c327.tar.zst
nixfiles-9b3795e88f398077e4be2f3949f26a22d2d6c327.zip
Emacs: enable smooth scrolling on macOS
Diffstat (limited to 'user')
-rw-r--r--user/emacs/init.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index 5da22a7c..8bb3d7cd 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -92,6 +92,10 @@
 
 (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