Fork me on GitHub
#spacemacs
<
2020-03-01
>
practicalli-johnny20:03:16

Is there anything else missing from the Spacemacs Clojure layer that you think would be useful to add? Thanks.

erwinrooijakkers10:03:20

cider-pprint-eval-last-sexp-to-comment

erwinrooijakkers10:03:48

I would use that one for ,e;

erwinrooijakkers10:03:00

Instead of cider-eval-defun-to-comment

erwinrooijakkers10:03:50

Oh actually I see how it works now

erwinrooijakkers10:03:01

You have to stand in the expression with cider-eval-defun-to-comment

erwinrooijakkers11:03:57

Maybe also a command to clear the repl, not sure if that’s possible

erwinrooijakkers11:03:07

I mean removing all vars

erwinrooijakkers11:03:17

So you have a clean slate again

erwinrooijakkers11:03:31

Now I use cider-quit and restart

erwinrooijakkers11:03:43

Maybe there’s already a better way

practicalli-johnny12:03:11

As of the latest develop branch, there are several ways to remove vars , e u to undefine a specific var , e n to refresh the current namespace , e N or , s q n to reload the current namespace , s q N to reload everything , s q r to restart the REPL

👍 4
practicalli-johnny12:03:09

I will give cider-pprint-eval-last-sexp-to-comment a try, I had not noticed that command before. I tend to use cider-eval-defun-at-point far more. I only use last-sexp on nested functions, so initially the current , e ; binding seems to fit. However, I will test out the differences this week. I can always add another binding for that function if there is a good keybinding to use.

practicalli-johnny12:03:14

Thanks for the feedback

aisamu14:03:25

Would it be possible (even if locally) to put the -pprint versions behind a C-u+`regular-command`?

practicalli-johnny18:03:52

@U1UQEM078 interesting. There are a few places where different functions or behaviour is called if you use SPC u before the keybinding, but I havent looked in detail at this. Certainly would help streamline a few keybindings if we just provided a universal argument to switch.

👍 4
didibus04:03:03

I'd love if the layer could smartly alter itself between cider and inf-clojure

didibus04:03:30

Well, I'd say low on the priority list, but I think it be a nice to have

practicalli-johnny09:03:39

@U0K064KQV do you have any info on how to use inf-clojure with Spacemacs? Not something I am aware of or have tried.

practicalli-johnny10:03:30

There is an outstanding issue on Spacemacs for swappable backends for Clojure. https://github.com/syl20bnr/spacemacs/issues/11014 I havent felt the need for anything other than CIDER, so not on my todo list for a long while.