Fork me on GitHub
#spacemacs
<
2019-07-24
>
romain06:07:02

@jr0cket I love your blog post and all the efforts you put in spacemacs clojure layer ^^' I can understand why it's not worth it to switch.

practicalli-johnny06:07:30

Yes, there is that too 😁

practicalli-johnny06:07:36

I get the sense that doom-emacs tries to be even more vim like. I am not from a vim background so probably not aware of things that make doom-emacs appealing. Spacemacs helped me appreciate the vim style editing and I am very grateful for that. I wish doom-emacs every success.

romain08:07:32

I really appreciate the simplicity and philosophy of doom, plus Henrik is really active and emacs rocker. But I really like all the work done in spacemacs (especially bindings/hydra) and its "big" community

prnc10:07:53

Hi! Has anyone anyone had any trouble with magit lately? after package update, magit window starts in emacs emacs state and even when switched to vim state mappings don’t work. Package update rollback helps 😜 (temporarly), Cheers!

4
jaide15:07:14

If I want to eval a clojure expression in the repl buffer and pprint the results, is there a simple way to do that?

eggsyntax15:07:17

Not that I know of.

jaide15:07:11

Ok, so say you want to check the output of a function that returns a good sized data structure. How would you go about evaluating it and examining its results?

eggsyntax15:07:37

Well, personally I use datawalk for that 😄 https://github.com/eggsyntax/datawalk And lately I've been loving scope-capture for cases where I'll frequently need the inputs/output of a function. But otherwise I would typically send it to the REPL, and then do (pprint *1) (or (pp)).

eggsyntax16:07:58

Oh look, actually there is a pprint version of eval! cider-pprint-last-sexp and a few variants. I knew you could eval & print, but I didn't realize you could pprint.

eggsyntax16:07:37

With evil bindings:

jaide16:07:40

Thanks. When I try cider-pprint-eval-last-sexp I see “wrong type argument: stringp, package-desc”

eggsyntax16:07:36

Oh, that's annoying. Have you evaluated the ns containing the sexp in question?

eggsyntax16:07:11

Just confirmed that it works for me.

jaide16:07:49

Yes, I can evaluate it using most the other evaluation options. I think this has something to do with refactor https://github.com/clojure-emacs/clj-refactor.el/issues/369

eggsyntax16:07:03

Various clj-refactor functions have definitely failed for me a lot of times, it's mentioned somewhere in docs that some of them just don't work. But does that fn come from clj-refactor? I wouldn't have expected it to.

jaide16:07:36

I don’t think it does, but clj-refactor seems to be messing with that function a bit.

jaide16:07:08

Disabling refactor and restarting it fixed that immediate issue, it now opens a buffer with the result but not really pprint format

eggsyntax16:07:30

Oh, nice! Ish.

eggsyntax16:07:32

My motivation for writing datawalk was definitely that pprint isn't really adequate for large data structures.

jaide16:07:37

Yeah, it’s progress!

jaide16:07:00

Admittedly this is probably 15 lines of code for this data structure I’m trying to view. It’s too much for me to scan it inline, but not that big where I need another plugin (plus my emacs fu is weak right now)

eggsyntax16:07:39

And of course these days there's REBL. But IIRC I got my lein + REBL instructions from you, so I know you're aware of that one 😆

jaide16:07:11

Haha of course 😛 However, I’m in ClojureScript which I don’t think REBL supports yet.

eggsyntax16:07:39

Ah, yeah, totally. Well, datawalk does 😉

eggsyntax16:07:06

I'll stop pushing my library on you now 😜

jaide17:07:17

Haha I’ll try it. I have no idea why it’s not actually pprint’ing the results.

jumar09:07:31

I often use cider-inspect and sometimes cider-inspect-last-result

👍 4
jaide15:07:12

Thanks, I’ll try that!