emacs

Consider also joining #cider, #lsp and #inf-clojure, where most of the tool-specific discussions are happening.
ozzloy 2020-10-14T02:25:51.072100Z

if i'm in a clojure buffer, is there a shortcut to tell the cider repl to switch to this files namespace?

jumar 2020-10-14T03:25:40.072800Z

@ozzloy_clojurians_net cider-repl-set-ns (in my settings C-c M-n n)

ozzloy 2020-10-14T03:26:06.073Z

@jumar thanks!

ozzloy 2020-10-14T03:26:26.073400Z

is there a way to get a running repl to grab new dependencies added to deps.edn?

jumar 2020-10-14T03:29:00.074300Z

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/

ozzloy 2020-10-14T03:31:13.074600Z

thanks!

ozzloy 2020-10-14T03:33:05.074900Z

@jumar that worked to switch the namespace for me!

ag 2020-10-14T18:26:00.076200Z

What's the best way un-align forms that were previously aligned vertically with M-x clojure-align?

ag 2020-10-15T15:10:42.081400Z

Alright, will make a PR

mpenet 2020-10-14T18:31:15.076300Z

clj-fmt 0.7.0 has a new flag for that

mpenet 2020-10-14T18:31:45.076500Z

With emacs alone I dont know if that's feasible

mpenet 2020-10-14T18:33:57.076700Z

With clj-fmt its with :remove-multiple-non-indenting-spaces? true

ag 2020-10-14T18:41:04.076900Z

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.

mpenet 2020-10-14T18:44:23.077100Z

Yes but you'd do it once and then keep the codebase "clean" since by default no alignment happens.

mpenet 2020-10-14T18:44:59.077300Z

If you need to do it back/forth it's another story

ag 2020-10-14T18:52:08.077600Z

> 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