summaryrefslogtreecommitdiff
path: root/cider.el
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@tradeo.com>2014-05-29 19:18:16 +0300
committerBozhidar Batsov <bozhidar@tradeo.com>2014-05-29 19:18:16 +0300
commitded8a7460858a104c97651447e013928b13ba210 (patch)
treeb417a648f1cf628943c8d16f795407794a661dee /cider.el
parent4f3b6a70855df32ae1a6abe6ddc69e75ebc0f107 (diff)
[Fix #580] Don't check for the lein command presence on remote hosts
Diffstat (limited to 'cider.el')
-rw-r--r--cider.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/cider.el b/cider.el
index b6d5edc8..99b96538 100644
--- a/cider.el
+++ b/cider.el
@@ -92,9 +92,12 @@ This variable is used by the CIDER command."
:group 'cider)
(defun cider--lein-present-p ()
- "Check if `cider-lein-command' is on the `exec-path'."
- (or (executable-find cider-lein-command)
- (executable-find (concat cider-lein-command ".bat"))))
+ "Check if `cider-lein-command' is on the `exec-path'.
+
+In case `default-directory' is non-local we assume the command is available."
+ ((or (file-remote-p default-directory)
+ (executable-find cider-lein-command)
+ (executable-find (concat cider-lein-command ".bat")))))
;;;###autoload
(defun cider-version ()