diff options
author | Bozhidar Batsov <bozhidar@batsov.com> | 2018-03-07 08:02:02 +0700 |
---|---|---|
committer | Bozhidar Batsov <bozhidar@batsov.com> | 2018-03-07 08:02:02 +0700 |
commit | b460bbc7168ad4bd390d8fb9ca257b5c54a76378 (patch) | |
tree | 2316353019ab8199c92ce1bba99d2d8791d62518 /cider.el | |
parent | 3d3c0ed3b6f420f6f3a56ffdc13147dfed59db0f (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.el | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |