Skip to content

Instantly share code, notes, and snippets.

@Layzie
Created January 9, 2016 17:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Layzie/cb3fcd5de63ec66c5153 to your computer and use it in GitHub Desktop.
Save Layzie/cb3fcd5de63ec66c5153 to your computer and use it in GitHub Desktop.

Clojure & Spacemacs on Mac OS

install

$ brew install leiningen
$ brew install boot-clj
$ vi ~/.boot/profile.boot
$ vi ~/.lein/profiles.clj

.spacemacs

(setq-default dotspacemacs-confi-layers '(clojure))

profile.boot

(require 'boot.repl)

(swap! boot.repl/*default-dependencies* conj
       '[refactor-nrepl "1.2.0-SNAPSHOT"]
       '[cider/cider-nrepl "0.10.0-SNAPSHOT"])

(swap! boot.repl/*default-middleware* conj
       'refactor-nrepl.middleware/wrap-refactor)

profiles.clj

{:repl {:plugins [[cider/cider-nrepl "0.10.0-SNAPSHOT"]
                  [refactor-nrepl "2.0.0-SNAPSHOT"]]
        :dependencies [[alembic "0.3.2"]
                       [org.clojure/tools.nrepl "0.2.12"]]}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment