summaryrefslogtreecommitdiff
path: root/cider.el
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@tradeo.com>2014-05-23 12:40:13 +0300
committerBozhidar Batsov <bozhidar@tradeo.com>2014-05-23 12:40:13 +0300
commitb919e337fe146dc9b57a06fcddd6c0ba16a341de (patch)
tree416cd158a4c21a92f4f158a1a2b38c6a0933a590 /cider.el
parent641940960024bd67c4dc71e2439f698c8de42587 (diff)
[Fix #578] Simplify nREPL boot command
The use of `cd` is redundant as let-binding `default-directory` has the same effect anyways.
Diffstat (limited to 'cider.el')
-rw-r--r--cider.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/cider.el b/cider.el
index 9198cc07..b6d5edc8 100644
--- a/cider.el
+++ b/cider.el
@@ -119,7 +119,7 @@ start the server."
cider-lein-parameters)))
(when (nrepl-check-for-repl-buffer nil project-dir)
(let* ((nrepl-project-dir project-dir)
- (cmd (format "cd %s && %s %s" (or project ".") cider-lein-command cider-lein-parameters))
+ (cmd (format "%s %s" cider-lein-command cider-lein-parameters))
(default-directory (or project-dir default-directory))
(nrepl-buffer-name (generate-new-buffer-name
(nrepl-server-buffer-name)))
@@ -137,7 +137,7 @@ start the server."
(with-current-buffer (process-buffer process)
(setq nrepl-project-dir project-dir))
(message "Starting nREPL server..."))))
- (message "The lein executable isn't on your exec-path or set absolutely as cider-lein-command")))
+ (message "The %s executable (specified by `cider-lein-command') isn't on your exec-path" cider-lein-command)))
(defun cider-known-endpoint-candidates ()
"Known endpoint candidates for establishing an nREPL connection.