This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-12-10
Channels
- # 100-days-of-code (2)
- # adventofcode (188)
- # aleph (3)
- # announcements (2)
- # beginners (76)
- # boot (3)
- # braveandtrue (49)
- # cider (82)
- # clara (15)
- # clojure (101)
- # clojure-europe (4)
- # clojure-india (3)
- # clojure-italy (26)
- # clojure-kc (1)
- # clojure-nl (4)
- # clojure-norway (1)
- # clojure-russia (5)
- # clojure-uk (33)
- # clojurescript (32)
- # crypto (20)
- # cursive (34)
- # datomic (45)
- # emacs (3)
- # events (1)
- # figwheel (1)
- # figwheel-main (10)
- # fulcro (30)
- # graphql (14)
- # hoplon (12)
- # hyperfiddle (21)
- # jobs (11)
- # kaocha (7)
- # klipse (8)
- # leiningen (10)
- # luminus (3)
- # nrepl (18)
- # off-topic (232)
- # onyx (8)
- # pathom (6)
- # re-frame (30)
- # reagent (3)
- # reitit (6)
- # remote-jobs (3)
- # ring-swagger (4)
- # shadow-cljs (21)
- # spacemacs (5)
- # sql (18)
- # tools-deps (23)
- # yada (2)
I saw a video where they automatically inserted the ns require with Cursive (ie put str/ and it inserts [clojure.string :as str] )- I saw you can do it with clj-refactor-- spacemacs docs says clj refactor is included in the layer and has code to insert in your .lein/profiles.clj - but after I added it the repl won’t start — Also don’t I want to migrate to tools.dep anyway? Any thoughts on tools.dep with Spacemacs
@U054219BT clj-refactor is now an optional package in the Spacemacs Clojure layer, as its features are migrating into clojure-mode package. You have not needed to add anything to .lein/profiles
since version 0.10
of Cider.
To add clj-refactor for any Clojure project, edit your .spacemacs
file and in the dotspacemaca/layers section, replace clojure
with
(clojure :variables
clojure-enable-clj-refactor t)
I am assuming you mean this function from clj-refactor, which has a keybinding of , r a r
in Spacemacs
https://github.com/clojure-emacs/clj-refactor.el/wiki/cljr-add-require-to-ns
@U05254DQM Thank you that was exactly it — somehow I misread that clj-refactor was automatically included in the Clojure layer but it isn’t 👏
It's is a recent change, in the last couple of months on develop