A more verbose approach would be to call a function that doesn't do anything important. A message could also be added that highlights in the mini-buffer that the key binding was pressed.
(defun practicalli-nothing ()
(interactive)
(message "Buttons are not toys") )
(define-key global-map (kbd "<magnify-up>") 'practicalli-nothing)
(define-key global-map (kbd "<magnify-down>") 'practicalli-nothing)
MacOSX has trackpad zoom gestures that work with Spacemacs. However, if they keep triggering accidentally during typing then they can be disabled
The gestures becomes the keypresses
<magnify-down>
or<magnify-up>
These keys are bound to actions within Emacs itself and not Spacemacs as part of the global-map.
The
<magnify-down>
or<magnify-up>
key bindings can be changed usingkbd
, which coverts keys to the internal Emacs representation.A more verbose approach would be to call a function that doesn't do anything important. A message could also be added that highlights in the mini-buffer that the key binding was pressed.
A reference to read https://www.masteringemacs.org/article/mastering-key-bindings-emacs