a minimalist's unit testing framework
This project is maintained by seancorfield and jaycfields
adding signal, removing noise
(define-clojure-indent (expect 'defun) (given 'defun) (context 1) (freeze-time 1) (redef-state 1) (from-each 1))
(dolist (x '((true т) (false ғ) (nil Ø) (with-redefs я) (interaction ι) (a-fn1 α) (a-fn2 β) (a-fn3 γ) (no-op ε))) (eval-after-load 'clojure-mode '(font-lock-add-keywords 'clojure-mode `((,(concat "[\[({[:space:]]" "\\(" (symbol-name (first x)) "\\)" "[\])}[:space:]]") (0 (progn (compose-region (match-beginning 1) (match-end 1) ,(symbol-name (second x))) nil)))))) (eval-after-load 'clojure-mode '(font-lock-add-keywords 'clojure-mode `((,(concat "^" "\\(" (symbol-name (first x)) "\\)" "[\])}[:space:]]") (0 (progn (compose-region (match-beginning 1) (match-end 1) ,(symbol-name (second x))) nil)))))) (eval-after-load 'clojure-mode '(font-lock-add-keywords 'clojure-mode `((,(concat "[\[({[:space:]]" "\\(" (symbol-name (first x)) "\\)" "$") (0 (progn (compose-region (match-beginning 1) (match-end 1) ,(symbol-name (second x))) nil)))))))The image below shows the before and after buffers. The top buffer is the buffer with the font locks applied.