This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-06-09
Channels
- # beginners (47)
- # boot (5)
- # cider (25)
- # cljs-dev (2)
- # clojars (2)
- # clojure (33)
- # clojure-dev (25)
- # clojure-italy (2)
- # clojure-uk (35)
- # clojurescript (27)
- # core-async (2)
- # datomic (5)
- # graphql (2)
- # immutant (3)
- # off-topic (3)
- # onyx (2)
- # pedestal (4)
- # portkey (52)
- # reagent (2)
- # shadow-cljs (55)
- # spacemacs (21)
- # sql (8)
- # tools-deps (22)
Hmm, why doesn’t (global-set-key (kbd "C-/") 'avy-goto-char-2)
use that key mapping?
Spacemacs just keeps the old binding.
C-/ runs the command undo-tree-undo (found in undo-tree-map), which is an interactive compiled Lisp function in
'~/.emacs.spacemacs/elpa/undo-tree-0.6.5/undo-tree.el'.
It is bound to C-_, C-/, s-z, <menu-bar> <edit> <undo>, <undo>.
Ah. There I can't help you; I haven't done custom layers at all. I'd try it in .spacemacs
(in dotspacemacs/user-config
) and see if that works, and also try doing it at runtime. Just to try to isolate.
My guess is that the other binding is getting loaded later than yours is. If the above doesn't work, I'd also try binding it to something different, and/or binding that combo to something else, again just to isolate. Sorry, I know that's all the obv stuff, I've got no particular insight into why it's not working.
Oh. OK, if evaling it at runtime doesn't work, that blows my theory. Does it work if you eval (avy-goto-char-2 <SOME-ARGS>)
at runtime?
And this doesn’t work either. (global-set-key (kbd "C-_, C-/, s-z") 'avy-goto-char-2)