Skip to content

Commit 295d1c5

Browse files
committed
Just use clojure-find-clojure-test.
1 parent 74f0cd6 commit 295d1c5

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

clojure-test-mode.el

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -536,12 +536,10 @@ Clojure src file for the given test namespace.")
536536
;;;###autoload
537537
(progn
538538
(defun clojure-test-maybe-enable ()
539-
"Enable clojure-test-mode if the current buffer contains a namespace
540-
with a \"test.\" bit on it."
541-
(let ((res (clojure-find-clojure-test)))
542-
(when (and res (string-match "clojure\\.test" res))
543-
(save-window-excursion
544-
(clojure-test-mode t)))))
539+
"Enable clojure-test-mode if the current buffer contains a \"clojure.test\" bit in it."
540+
(when (clojure-find-clojure-test)
541+
(save-window-excursion
542+
(clojure-test-mode t))))
545543

546544
(add-hook 'clojure-mode-hook 'clojure-test-maybe-enable))
547545

0 commit comments

Comments
 (0)