Fork me on GitHub
#cider
<
2016-07-18
>
cycle33707:07:45

hello guys, I'm new to cider and boot, and I want to configure it to work in emacs (got it from elpa) not inject it in my project

cycle33707:07:09

thing is, whenever I start cider-jack-in it wants to open an nREPL with lein

cycle33707:07:25

tried to search for tutorials or manuals on this but no success

delaguardo09:07:57

My customizations: in ~/.boot/profiles.boot

(deftask cider "CIDER profile"
  []
  (require 'boot.repl)
  (swap! @(resolve 'boot.repl/*default-dependencies*)
         concat '[[org.clojure/tools.nrepl "0.2.12"]
                  [cider/cider-nrepl "0.13.0-SNAPSHOT"]
                  [refactor-nrepl "2.3.0-SNAPSHOT"]
                  [alembic "0.3.2"]])
  (swap! @(resolve 'boot.repl/*default-middleware*)
         concat '[cider.nrepl/cider-middleware
                  refactor-nrepl.middleware/wrap-refactor])
  identity)
And in emacs customizations for cider-mode: "Cider Preffered Build Tool" => "boot" and "Cider Boot Parameters" => "cider repl -s wait"

cycle33710:07:32

thank you @delaguardo I'll check this out give it a swirl

malabarba12:07:10

@avabinary: > thing is, whenever I start cider-jack-in it wants to open an nREPL with lein If you have a build.boot file in your project, cider should either give you the option of using boot or just use boot automatically.

malabarba12:07:25

I.e., it should just work

malabarba13:07:20

I would recommend against using a special cider task unless you really know what you're doing.

malabarba13:07:16

Cider already injects the right version for you, and using a self defined task is going to give you headaches if you forget to update the version