spacemacs

Spacemacs docs: http://develop.spacemacs.org/doc/DOCUMENTATION.html http://develop.spacemacs.org/layers/+lang/clojure/README.html https://practicalli.github.io/spacemacs/
practicalli-john 2020-03-01T20:02:16.079700Z

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

erwinrooijakkers 2020-03-02T10:57:20.080200Z

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

erwinrooijakkers 2020-03-02T10:57:48.080400Z

I would use that one for ,e;

erwinrooijakkers 2020-03-02T10:58:00.080600Z

Instead of cider-eval-defun-to-comment

erwinrooijakkers 2020-03-02T10:58:50.080800Z

Oh actually I see how it works now

erwinrooijakkers 2020-03-02T10:59:01.081Z

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

erwinrooijakkers 2020-03-02T11:00:57.081200Z

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

erwinrooijakkers 2020-03-02T11:01:07.081400Z

I mean removing all vars

erwinrooijakkers 2020-03-02T11:01:17.081600Z

So you have a clean slate again

erwinrooijakkers 2020-03-02T11:01:31.081800Z

Now I use cider-quit and restart

erwinrooijakkers 2020-03-02T11:01:43.082Z

Maybe there’s already a better way

practicalli-john 2020-03-02T12:36:11.082300Z

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

👍 1
practicalli-john 2020-03-02T12:44:09.082500Z

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-john 2020-03-02T12:44:14.082700Z

Thanks for the feedback

aisamu 2020-03-02T14:09:25.083Z

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

practicalli-john 2020-03-02T18:06:52.083200Z

@aisamu 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.

👍 1
2020-03-05T04:15:03.084800Z

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

2020-03-05T04:15:30.085Z

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

practicalli-john 2020-03-05T09:16:39.085200Z

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

practicalli-john 2020-03-05T10:48:30.085400Z

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.