aboutsummaryrefslogtreecommitdiff
path: root/.dir-locals.el
blob: 4df3cad5c872ee40834742dd207be9205aed30f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
;;; Directory Local Variables            -*- no-byte-compile: t -*-
;;; For more information see (info "(emacs) Directory Variables")

((nil . ((fill-column . 80)
         (cider-preferred-build-tool . clojure-cli)
         (cider-clojure-cli-aliases . "-M:frontend")
         (cider-default-cljs-repl . custom)
         (cider-custom-cljs-repl-init-form . "(do (require '[shadow.cljs.devtools.api :as shadow])\n(require '[shadow.cljs.devtools.server :as server])\n(server/start!)\n(shadow/watch :tubo)\n(shadow/nrepl-select :tubo))")
         (cider-merge-sessions . :project)
         (eval . (progn
                   (unless (boundp 'cider-jack-in-nrepl-middlewares)
                     (require 'cider))
                   (make-variable-buffer-local 'cider-jack-in-nrepl-middlewares)
                   (add-to-list 'cider-jack-in-nrepl-middlewares "cider.nrepl/cider-middleware")
                   (add-to-list 'cider-jack-in-nrepl-middlewares "shadow.cljs.devtools.server.nrepl/middleware")))
         (eval . (setq-local compile-command "npm start")))))