diff options
author | Bozhidar Batsov <bozhidar@tradeo.com> | 2014-05-29 19:18:16 +0300 |
---|---|---|
committer | Bozhidar Batsov <bozhidar@tradeo.com> | 2014-05-29 19:18:16 +0300 |
commit | ded8a7460858a104c97651447e013928b13ba210 (patch) | |
tree | b417a648f1cf628943c8d16f795407794a661dee /cider.el | |
parent | 4f3b6a70855df32ae1a6abe6ddc69e75ebc0f107 (diff) |
[Fix #580] Don't check for the lein command presence on remote hosts
Diffstat (limited to 'cider.el')
-rw-r--r-- | cider.el | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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 () |