We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74f0cd6 commit 295d1c5Copy full SHA for 295d1c5
clojure-test-mode.el
@@ -536,12 +536,10 @@ Clojure src file for the given test namespace.")
536
;;;###autoload
537
(progn
538
(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)))))
+ "Enable clojure-test-mode if the current buffer contains a \"clojure.test\" bit in it."
+ (when (clojure-find-clojure-test)
+ (save-window-excursion
+ (clojure-test-mode t))))
545
546
(add-hook 'clojure-mode-hook 'clojure-test-maybe-enable))
547
0 commit comments