if i'm in a clojure buffer, is there a shortcut to tell the cider repl to switch to this files namespace?
@ozzloy_clojurians_net cider-repl-set-ns
(in my settings C-c M-n n
)
@jumar thanks!
is there a way to get a running repl to grab new dependencies added to deps.edn?
I think there's but I don't use deps that much (using leiningen). A long time before it used to work with clj-refactor but that has been broken afaik. Check https://insideclojure.org/2018/05/04/add-lib/
thanks!
@jumar that worked to switch the namespace for me!
What's the best way un-align forms that were previously aligned vertically with M-x clojure-align
?
Alright, will make a PR
clj-fmt 0.7.0 has a new flag for that
With emacs alone I dont know if that's feasible
With clj-fmt its with :remove-multiple-non-indenting-spaces? true
clj-fmt
is painfully slow to execute as an external tool. jet --pretty
is much faster, but it does manipulate the order of keys (not ideal). I'd like to find emacs-lisp way.
Yes but you'd do it once and then keep the codebase "clean" since by default no alignment happens.
If you need to do it back/forth it's another story
> Yes but you'd do it once and then keep the codebase "clean"
I need this not for the large codebase chunks. Mostly for selected regions or current clojure-form.
Reasons: I like to vertically align things (forms read better that way), in some teams that is not an established convention, people sometimes don't like it. That is why I'm looking for the exact opposite of M-x clojure-align