Fork me on GitHub
#spacemacs
<
2017-07-11
>
practicalli-johnny18:07:47

Any thoughts on the following keybinding I am proposing for Spacemacs "rck" 'clojure-toggle-keyword-string This will toggle a string into a keyword and a keyword into a string. A handy shortcut for changing data structure types. Does this sound useful ?

ag18:07:02

you mean SPC rck or you want to introduce a binding that potentially will be conflicting with evil's r motion?

practicalli-johnny18:07:02

@ag Well in full it would be SPC m r c k

zlrth19:07:06

that is, , SPC b to start my command. i’d like to just hit , b to start my project.

practicalli-johnny19:07:41

@mfm this may be a long shot, but how about ",b" instead of ", b"- so remove the space

zlrth20:07:01

@jr0cket that’s a great idea! i didn’t notice that.

zlrth20:07:56

@jr0cket your suggestion was key. this works:

(define-key clojure-mode-map (kbd ",b") 'start-cider-project)

practicalli-johnny20:07:05

or is it simple "b" as you are adding it to a mode

zlrth20:07:28

oh shit that adds it to <insert-mode> in evil, too. nevermind.

zlrth21:07:34

ok; this should work in anyone’s spacemacs, right?

(evil-define-key 'normal lisp-mode-map "b" (lambda () (message "bar")))
for me, b is not overridden.