spacemacs

Spacemacs docs: http://develop.spacemacs.org/doc/DOCUMENTATION.html http://develop.spacemacs.org/layers/+lang/clojure/README.html https://practicalli.github.io/spacemacs/
mccraigmccraig 2020-04-29T12:24:01.449500Z

anyone know how to disable trackpad zoom gestures in spacemacs on macos ? i keep triggering them accidentally and i never want them

mccraigmccraig 2020-04-29T12:27:58.450300Z

hmm, looks like the gestures becomes the keypresses <magnify-down> or <magnify-up>

mccraigmccraig 2020-04-29T12:49:05.450800Z

can't figure out how i turn those gesture names into something i can use with global-unset-key though

practicalli-john 2020-04-29T13:50:51.454100Z

@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?

mccraigmccraig 2020-04-29T13:53:07.455700Z

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 😬

practicalli-john 2020-04-29T13:57:56.457800Z

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...

practicalli-john 2020-04-29T14:02:56.459Z

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)

mccraigmccraig 2020-04-29T14:03:09.459100Z

yeah, it's all or nothing in the macos trackpad prefs

mccraigmccraig 2020-04-29T14:05:52.460700Z

ah - i think you've just given me the answer - it's the kbd fn that i need to translate the binding description

practicalli-john 2020-04-29T14:06:05.461100Z

I dont have a Mac, so cant test it for you, but <up> and <down> worked for the arrow keys

mccraigmccraig 2020-04-29T14:06:10.461200Z

thanks @jr0cket!

👍 1
mccraigmccraig 2020-04-29T14:06:55.461700Z

works a treat 🙂

practicalli-john 2020-04-29T14:07:36.462500Z

woot !! I feel like an elisp god (at least for the next minute or two) 🙂

practicalli-john 2020-04-29T14:08:56.463200Z

Something else I can add to my Spacemacs book

mccraigmccraig 2020-04-29T14:10:03.464Z

spurious zooms have been bugging me for ages, but i finally snapped today and decided i had to fix it

1
2020-04-29T19:20:39.465400Z

By chance does anyone know how to tell spacemacs to use pylint for python-mode flycheck?

practicalli-john 2020-04-29T22:49:21.466900Z

@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 "&lt;magnify-up&gt;") nil)
(define-key global-map (kbd "&lt;magnify-down&gt;") nil)

2020-04-29T23:47:14.467Z

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!

👍 1