summary refs log tree commit diff stats
path: root/user/emacs
diff options
context:
space:
mode:
authorAlan Pearce2024-06-24 18:43:36 +0200
committerAlan Pearce2024-06-25 10:33:16 +0200
commit25cc96e57d7a97f62a986596fa9fa4d217e8eb24 (patch)
treebb93850a17b6ce1948bd2e84560d6b16cbb41ea6 /user/emacs
parent7bfa3c3cb26612bbe5e5c221c5889b9045baa072 (diff)
downloadnixfiles-25cc96e57d7a97f62a986596fa9fa4d217e8eb24.tar.lz
nixfiles-25cc96e57d7a97f62a986596fa9fa4d217e8eb24.tar.zst
nixfiles-25cc96e57d7a97f62a986596fa9fa4d217e8eb24.zip
Emacs: disable changing font size by mouse/touchpad
Diffstat (limited to 'user/emacs')
-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 15b92090..b559f843 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -90,6 +90,10 @@
                                                    original-stimmung-themes-string))
                     (load-theme current-theme :noconfirm)))))))
 
+(global-set-key (kbd "<pinch>") 'ignore)
+(global-set-key (kbd "<C-wheel-up>") 'ignore)
+(global-set-key (kbd "<C-wheel-down>") 'ignore)
+
 (setq font-lock-maximum-decoration '((t . 1))
       jit-lock-stealth-time 1.25
       jit-lock-stealth-nice 0.5