Skip to content

Commit

Permalink
Move up the place where hack-local-variables is invoked
Browse files Browse the repository at this point in the history
That has to happen before checking the value of cider-default-cljs-repl.
  • Loading branch information
bbatsov committed Mar 7, 2018
1 parent 3d3c0ed commit b460bbc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cider.el
Expand Up @@ -615,13 +615,13 @@ Normally this would prompt for the ClojureScript REPL to start (e.g. Node,
Figwheel, etc), unless you've set `cider-default-cljs-repl'."
(interactive (list (cider-current-connection)))
(cider-verify-piggieback-is-present)
;; Load variables in .dir-locals.el into the server process buffer, so
;; cider-default-cljs-repl can be set for each project individually.
(hack-local-variables)
(let* ((cljs-repl-type (or cider-default-cljs-repl
(cider-select-cljs-repl)))
(cljs-repl-form (cider-cljs-repl-form cljs-repl-type)))
(cider-verify-cljs-repl-requirements cljs-repl-type)
;; Load variables in .dir-locals.el into the server process buffer, so
;; cider-default-cljs-repl can be set for each project individually.
(hack-local-variables)
(let* ((nrepl-repl-buffer-name-template "*cider-repl CLJS%s*")
(nrepl-create-client-buffer-function #'cider-repl-create)
(nrepl-use-this-as-repl-buffer 'new)
Expand Down

0 comments on commit b460bbc

Please sign in to comment.