This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-03-01
Channels
- # announcements (1)
- # babashka (1)
- # beginners (45)
- # business (3)
- # calva (43)
- # clojure (57)
- # clojure-spec (6)
- # clojure-uk (4)
- # clojured (8)
- # clojurescript (14)
- # cryogen (3)
- # datomic (2)
- # emacs (36)
- # fulcro (20)
- # garden (2)
- # jobs (2)
- # lumo (3)
- # meander (9)
- # off-topic (1)
- # other-lisps (1)
- # reagent (13)
- # shadow-cljs (25)
- # spacemacs (20)
- # tools-deps (11)
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`?
@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.
@U0K064KQV 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.