-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathuser.clj
35 lines (30 loc) · 1.22 KB
/
user.clj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
(ns user
(:require
[clojure.tools.namespace.repl :as tools-ns :refer [set-refresh-dirs]]
[expound.alpha :as expound]
[clojure.spec.alpha :as s]))
(set-refresh-dirs "src/main" "src/dev" "src/test")
(alter-var-root #'s/*explain-out* (constantly expound/printer))
;; NOTE: To start working with server: Require development.clj, and use start there.
;; This leads to faster and more reliable REPL startup
;; in cases where your app is busted.
;; If using IntelliJ, Use actions to "Add new REPL command", and add this (dropping the comment around it),
;; then add a keyboard shortcut to it. Then you can start your server quickly once the REPL is going:
;; If using emacs, copy this snippet into a .dir-locals.el file at project root:
;; (
;; (nil .
;; ((eval . (progn
;; (local-set-key (kbd "C-c C-r")
;; (lambda ()
;; (interactive)
;; (cider-interactive-eval
;; "(require 'development) (in-ns 'development) (restart)"
;; nil
;; nil
;; (cider--nrepl-pr-request-map)))))))))
;;
(comment
(require 'development)
(in-ns 'development)
(restart)
)