Permalink
Browse files

Make clojure-swank-command defcustom.

  • Loading branch information...
1 parent 6d9a7e7 commit 03fbda8fdb65d6ad41308e0ce03efa4dfa87d966 @Raynes committed Oct 25, 2011
Showing with 8 additions and 4 deletions.
  1. +8 −4 clojure-mode.el
View
@@ -851,10 +851,14 @@ use (put-clojure-indent 'some-symbol 'defun)."
(defvar clojure-project-root-file "project.clj")
;; Pipe to sh to work around mackosecks GUI Emacs $PATH issues.
-(defvar clojure-swank-command (if (or (locate-file "lein" exec-path)
- (locate-file "lein.bat" exec-path))
- "lein jack-in %s"
- "echo \"lein jack-in %s\" | sh"))
+(defcustom clojure-swank-command
+ (if (or (locate-file "lein" exec-path)
+ (locate-file "lein.bat" exec-path))
+ "lein jack-in %s"
+ "echo \"lein jack-in %s\" | sh")
+ "The command used to start swank via clojure-jack-in."
+ :type 'string
+ :group 'clojure-mode)
(defun clojure-jack-in-sentinel (process event)
(let ((debug-on-error t))

0 comments on commit 03fbda8

Please sign in to comment.