This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
When I invoke cider-cljs-lein-repl, hello-world.core is not loaded to the REPL automatically. I have to load it manually. How can I have it done automatically?
(defproject clj-ddns-client "1.3.5"
:description "It updates DDNS entries of various DDNS providers."
:url ""
:license {:name "Mozilla Public License 2.0"
:url " "
:year 2015
:key "mpl-2.0"}
:dependencies [[org.clojure/clojure "1.7.0"]
[clj-time "0.10.0"]
[jarohen/chime "0.1.6"]
[clj-http "1.1.2"]
;; logging
[spootnik/unilog "0.7.8"]
[org.clojure/tools.logging "0.3.1"]
;; cli
[org.clojure/tools.cli "0.3.1"]]
:main ^:skip-aot clj-ddns-client.core
:target-path "target/%s"
:profiles {:uberjar {:aot :all}})
{:user {:plugins [[cider/cider-nrepl "0.10.0"]
[lein-license "0.1.3"]]
:dependencies [[org.clojure/tools.nrepl "0.2.12"]]}}
@bozhidar: Do you have to explicitly press C-c C-l for every namespace you open in emacs?
cider will auto-evaluate its (first) ns declaration to create some ns context for the code evaluation
loaded nses automatically is a very bad idea, as some namespaces have code that does something with side-effects
If you open core.clj and press C-c M-j, is core.clj loaded automatically on REPL startup?
Somehow, functions and variables on core.clj are available on my cider REPL from the beginning.
For now, I have to launch a clojure repl, start figwheel, and start figwheel cljs-repl in the clojure REPL.
@crocket: Many many moons ago I ran a function like this
(defun cider-figwheel-repl ()
(interactive)
(save-some-buffers)
(with-current-buffer (cider-current-repl-buffer)
(goto-char (point-max))
(insert "(require 'figwheel-sidecar.repl-api)
(figwheel-sidecar.repl-api/cljs-repl)")
(cider-repl-return)))
It might be useful for you to hook into figwheel, but I hardly remember when I added it to my emacs.d
. Hope it is what you wondered about, sorry otherwise@crocket this is a leiningen feature tho I think. if you start a repl from command line with lein repl
you should see the same
Is this wrong? ~/.lein/profiles.clj
{:user {:plugins [[lein-license "0.1.3"]]}
:repl {:plugins [[cider/cider-nrepl "0.10.0"]]
:dependencies [[org.clojure/tools.nrepl "0.2.12"]]}}
@codemartin: I created https://clojars.org/nrepl-figwheel-node/lein-template for my need.