Skip to content

Instantly share code, notes, and snippets.

(ns immutantbasic.core
(:require [immutant.web :as web]
[clojure.tools.nrepl.server :as repl]
[compojure.core :refer (defroutes)]
[compojure.route :as route]
[ring.middleware.resource :refer (wrap-resource)]
[ring.middleware.file :refer (wrap-file)])
(:gen-class))
(defroutes routes
@mgaare
mgaare / speclj in emacs
Created June 28, 2013 18:20
Settings to allow test <-> implementation file jumping to work when using speclj rather than clojure.test
;; test mode setup for speclj
(require 'clojure-test-mode)
;; Test navigation:
(defun clojure-in-tests-p ()
(or (string-match-p "spec\." (clojure-find-ns))
(string-match-p "/spec" (buffer-file-name))))
(defun clojure-test-for (namespace)
"Returns the path of the test file for the given namespace."