Fork me on GitHub
#spacemacs
<
2017-11-02
>
Drew Verlee20:11:40

suggestions welcome. Whats the best way to manipulate Clojure data with an editor? I see there are some options are there but im not sure how easily the integrate with Spacemaces or how hard it would make them work in that env. 1. Paredit comes out of the box 2. Evil Lispy 3. ??? I was using parnifer but i feel like at some point i want to take the time to learn something that edits the s-expressions directly.

ag20:11:54

I use the second option with added keybindings for insert-mode:

(dolist (map (list evil-insert-state-map))
  (define-key map "\M-l" 'sp-slurp-hybrid-sexp)
  (define-key map "\M-h" 'sp-forward-barf-sexp)
  (define-key map "\M-L" 'sp-backward-slurp-sexp)
  (define-key map "\M-H" 'sp-backward-barf-sexp))

eggsyntax21:11:29

@drewverlee the built-in cleverparens layer (basically paredit w/ custom SM bindings) is quite solid . I've been happy with that for quite a while (although I just started trying parinfer w/ SM).

eggsyntax21:11:41

& the integration is nice & tight.

eggsyntax21:11:04

Most of it's all right there under SPC k

ag21:11:39

I always wanted to try cleverparens but couldn't find time to play with it. @eggsyntax you say the package that good? I definitely gotta try it out

eggsyntax21:11:36

Well, I mean, it's pretty much just paredit 🙂

eggsyntax21:11:45

Just with nicely-integrated bindings.

ag22:11:24

I've tried parinfer - but I just couldn't get used to it... - way too smart for its own good

eggsyntax22:11:30

Definitely takes getting used to. The 1st time I tried it, I was on a tight deadline & couldn't afford to have it breaking my code. This time I've been able to slow down slightly & have been enjoying it. Dunno whether I'll ultimately switch or not.

ag22:11:04

are you talking about parinfer or cleverparens?

eggsyntax22:11:03

Cleverparens/paredit happily lets me break my own code, but only parinfer will break it for me 😆

ag22:11:41

have you seen Shaun's talk from Conj? He was demoing "smart mode of parinfer"... I dunno when that comes to Emacs

ag22:11:11

still feels a bit too "magical" I dunno if I want to give that much control to my editor

eggsyntax22:11:11

Yeah, I watched him give it -- smart mode definitely seems like a cool step forward 🙂

eggsyntax22:11:50

For me, I think it'll ultimately depend on whether it insists on doing stuff that I don't like. If it's consistent about doing what I would have done anyway, I'll probably be happy with it.

eggsyntax22:11:00

So far I've only noticed a couple of differences, mostly around placement of line comments at the end of a fn. (I would tend to put the parens after the comment; parinfer does the opposite).

Drew Verlee23:11:53

Thanks for the feedback

Drew Verlee23:11:18

I wish the new parnifer mode was on spacemacs

eggsyntax23:11:40

@drewverlee it is, if you switch to the develop branch (which is easy, just git checkout develop from inside ~/.emacs.d).

eggsyntax23:11:34

Note that there are a few configs you'll want to set at the same time as you turn it on, see .