summaryrefslogtreecommitdiff
path: root/cider.el
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@batsov.com>2018-03-07 08:02:02 +0700
committerBozhidar Batsov <bozhidar@batsov.com>2018-03-07 08:02:02 +0700
commitb460bbc7168ad4bd390d8fb9ca257b5c54a76378 (patch)
tree2316353019ab8199c92ce1bba99d2d8791d62518 /cider.el
parent3d3c0ed3b6f420f6f3a56ffdc13147dfed59db0f (diff)
Move up the place where hack-local-variables is invoked
That has to happen before checking the value of cider-default-cljs-repl.
Diffstat (limited to 'cider.el')
-rw-r--r--cider.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/cider.el b/cider.el
index caf68b1d..0b24ddcc 100644
--- a/cider.el
+++ b/cider.el
@@ -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)