@@ -225,6 +225,19 @@ often connecting to a remote REPL process."
225225 :safe #'inf-clojure--endpoint-p
226226 :package-version '(inf-clojure . " 2.0.0" ))
227227
228+ (defcustom inf-clojure-tools-deps-cmd " clj"
229+ " The command used to start a Clojure REPL for tools.deps projects.
230+
231+ Alternatively you can specify a TCP connection cons pair, instead
232+ of command, consisting of a host and port
233+ number (e.g. (\" localhost\" . 5555)). That's useful if you're
234+ often connecting to a remote REPL process."
235+ :type '(choice (string )
236+ (cons string integer))
237+ :risky #'stringp
238+ :safe #'inf-clojure--endpoint-p
239+ :package-version '(inf-clojure . " 2.1.0" ))
240+
228241(defcustom inf-clojure-generic-cmd " lein repl"
229242 " The command used to start a Clojure REPL outside Lein/Boot projects.
230243
@@ -503,7 +516,7 @@ to continue it."
503516 (t str)))
504517
505518(defvar inf-clojure-project-root-files
506- '(" project.clj" " build.boot" )
519+ '(" project.clj" " build.boot" " deps.edn " )
507520 " A list of files that can be considered project markers." )
508521
509522(defun inf-clojure-project-root ()
@@ -523,13 +536,15 @@ Fallback to `default-directory.' if not within a project."
523536 (let ((default-directory (inf-clojure-project-root)))
524537 (cond ((file-exists-p " project.clj" ) " lein" )
525538 ((file-exists-p " build.boot" ) " boot" )
539+ ((file-exists-p " deps.edn" ) " tools.deps" )
526540 (t " generic" )))))
527541
528542(defun inf-clojure-cmd (project-type )
529543 " Determine the command `inf-clojure' needs to invoke for the PROJECT-TYPE."
530544 (pcase project-type
531545 (" lein" inf-clojure-lein-cmd)
532546 (" boot" inf-clojure-boot-cmd)
547+ (" tools.deps" inf-clojure-tools-deps-cmd)
533548 (_ inf-clojure-generic-cmd)))
534549
535550(defun inf-clojure-clear-repl-buffer ()
0 commit comments