Fork me on GitHub
#emacs
<
2016-05-16
>
brian_mingus15:05:08

anyone using lispy-mode ?

brian_mingus15:05:19

[ and ] are bound making it impossible to write actual clojure code

brian_mingus16:05:04

@peeja: did you find a workaround to this bug?

peeja16:05:43

@brian_mingus: It's not a bug: } inserts [ in lispy

peeja16:05:54

It's a little weird, but I actually got used to it really fast

brian_mingus16:05:23

i tried to redefine those keys to j and l (lispy-define-key lispy-mode-map "j" 'lispy-forward)

brian_mingus16:05:27

doesn't work 😞

brian_mingus16:05:49

seems it adds additional bindings and keeps the old ones as well

peeja16:05:09

Well, for one thing, I wouldn't redefine j and l, as they're pretty important to the main lispy bindings already

peeja16:05:18

unless you've got a big plan

brian_mingus16:05:49

i use M-i,j,k,l for winmove up, left, right, down (shortcuts used in gaming)

brian_mingus16:05:05

so it is super weird for lispy to overload the meanings to be different..

brian_mingus16:05:35

i think i won't be able to use lispy-mode until i can tell it to undefine a shortcut, not just add additional ones

peeja16:05:38

Not sure what you mean; Lispy uses HJKL according to their vim meanings

peeja16:05:53

That's the basis for the entire thing

peeja16:05:13

Are you saying you just want the same style but with a different layout?

brian_mingus16:05:29

yeah i just need to be able to define my own keys, which i can do

brian_mingus16:05:33

what i can't do is undefine keys

peeja16:05:50

It's totally valid to want different bindings, I'm just saying it's not "super weird" for lispy to be using HJKL in the first place

brian_mingus16:05:38

i don't use vim, and i need i,k to be up,down, and j,l to be left, right, and i really don't want that goofy [ ] behavior

brian_mingus16:05:43

and i imagine i'll want to customize other things

peeja16:05:03

But, the second thing is that [ and ] are different from most Lispy bindings: they always apply, not just when the point is special

peeja16:05:18

(Their main purpose is to put the point where it's special)

peeja16:05:36

So you don't want to use lispy-define-key to recreate them on another key

peeja16:05:40

I think the right thing to do is just a normal define-key

ag22:05:13

does anyone know a package that lets you convert json into edn and vice-versa? I don’t wanna waste time writing one and then find out there’s better alternative out there

ag23:05:45

@brian_mingus: I was asking about Emacs package not clojure lib

brian_mingus23:05:18

oh, what's that for?

ag23:05:50

to convert json into EDN and vice-versa

ag23:05:59

in Emacs

ag23:05:15

you select piece of json and convert it to EDN

ag23:05:20

or the other way

brian_mingus23:05:36

call clojure and ask it to do it...

brian_mingus23:05:47

there are also python libs that can do it

ag23:05:15

yeah writing something like this in elisp shouldn’t be hard. though I thought someone may already has done it