This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-04-29
Channels
- # announcements (35)
- # aws (40)
- # babashka (10)
- # beginners (119)
- # calva (25)
- # cider (13)
- # clj-kondo (15)
- # cljsrn (23)
- # clojure (205)
- # clojure-dev (3)
- # clojure-europe (15)
- # clojure-germany (3)
- # clojure-italy (3)
- # clojure-nl (2)
- # clojure-uk (58)
- # clojurescript (193)
- # community-development (2)
- # conjure (147)
- # core-async (49)
- # cursive (47)
- # datomic (27)
- # duct (1)
- # fulcro (19)
- # graalvm (3)
- # graphql (1)
- # helix (3)
- # hoplon (11)
- # jackdaw (1)
- # joker (1)
- # juxt (5)
- # kaocha (1)
- # keechma (3)
- # lambdaisland (6)
- # local-first-clojure (27)
- # malli (5)
- # off-topic (41)
- # rdf (27)
- # re-frame (7)
- # reagent (15)
- # reitit (5)
- # rum (11)
- # shadow-cljs (157)
- # spacemacs (18)
- # sql (4)
- # xtdb (8)
anyone know how to disable trackpad zoom gestures in spacemacs on macos ? i keep triggering them accidentally and i never want them
hmm, looks like the gestures becomes the keypresses <magnify-down>
or <magnify-up>
can't figure out how i turn those gesture names into something i can use with global-unset-key
though
@mccraigmccraig I would have thought that mac trackpad gestures were configurable in macosx. Are they simply emulating specific key presses or are they a different key binding that is mapped in Spacemacs somewhere?
Would command-log, SPC a L
be useful to run as you are working. It shows the key binding and command in a side buffer?
i don't want to configure the trackpad zoom gestures in macos - i'm happy with them outside of emacs, i just don't ever want them to trigger in emacs... C-h k
showed me the binding info though, i just can't figure out how to turn that into a global-unset-key
call, 'cos i'm an emacs n00b 😬
Sorry, I assumed you could disable gestures for specific applications, or exclude applications. Sound like not. Rather than unset those, perhaps set them to a function that does not do anything or perhaps nil. Not entirely sure how to do that myself...
I am guessing something like this in the dotspacemacs/user-config might work
(defun practicalli-nothing ()
(interactive))
(define-key global-map (kbd "<magnify-down>") 'practicalli-nothing)
(define-key global-map (kbd "<magnify-up>") 'practicalli-nothing)
yeah, it's all or nothing in the macos trackpad prefs
ah - i think you've just given me the answer - it's the kbd
fn that i need to translate the binding description
I dont have a Mac, so cant test it for you, but <up> and <down> worked for the arrow keys
works a treat 🙂
woot !! I feel like an elisp god (at least for the next minute or two) 🙂
Something else I can add to my Spacemacs book
spurious zooms have been bugging me for ages, but i finally snapped today and decided i had to fix it

By chance does anyone know how to tell spacemacs to use pylint for python-mode flycheck?
Turned out not to be that bad. Had to enable the linter with flycheck-disable, then point flylint-python-pylint-executable to the right python command. Works great!
@mccraigmccraig for completeness, it seems that using nil is preferred over using an empty function (it does make more sense to me in hindsight)
(define-key global-map (kbd "<magnify-up>") nil)
(define-key global-map (kbd "<magnify-down>") nil)