Is there anything else missing from the Spacemacs Clojure layer that you think would be useful to add? Thanks.
cider-pprint-eval-last-sexp-to-comment
I would use that one for ,e;
Instead of cider-eval-defun-to-comment
Oh actually I see how it works now
You have to stand in the expression with cider-eval-defun-to-comment
Maybe also a command to clear the repl, not sure if that’s possible
I mean removing all vars
So you have a clean slate again
Now I use cider-quit
and restart
Maybe there’s already a better way
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
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.
Thanks for the feedback
Would it be possible (even if locally) to put the -pprint
versions behind a C-u
+`regular-command`?
@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.
I'd love if the layer could smartly alter itself between cider and inf-clojure
Well, I'd say low on the priority list, but I think it be a nice to have
@didibus do you have any info on how to use inf-clojure with Spacemacs? Not something I am aware of or have tried.
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.