-
Notifications
You must be signed in to change notification settings - Fork 14
/
corgi-clojure.el
49 lines (42 loc) · 1.73 KB
/
corgi-clojure.el
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
;;; corgi-clojure.el --- Clojure configuration for Corgi -*- lexical-binding: t -*-
;;
;; Filename: corgi-clojure.el
;; Package-Requires: ((use-package) (cider) (clj-ns-name) (clojure-mode))
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;;; Code:
(use-package clojure-mode
:magic ("^#![^\n]*/\\(clj\\|clojure\\|bb\\|lumo\\)" . clojure-mode)
:config
(setq clojure-toplevel-inside-comment-form t
;; Because of CIDER's insistence to send forms to all linked REPLs, we
;; *have* to be able to switch cljc buffer to clj/cljs mode without
;; cider complaining.
clojure-verify-major-mode nil))
(use-package cider
:diminish cider-mode
:config
(setq cider-preferred-build-tool 'clojure-cli)
(defadvice cider-find-var (before add-evil-jump activate)
(evil-set-jump)))
;; (use-package clj-refactor
;; :after (cider)
;; :diminish clj-refactor-mode
;; :config
;; (setq cljr-cljc-clojure-test-declaration "[clojure.test :refer [deftest testing is are use-fixtures run-tests join-fixtures]]"
;; cljr-cljs-clojure-test-declaration "[clojure.test :refer [deftest testing is are use-fixtures run-tests join-fixtures]]"
;; cljr-clojure-test-declaration "[clojure.test :refer [deftest testing is are use-fixtures run-tests join-fixtures]]"
;; cljr-eagerly-build-asts-on-startup nil
;; cljr-warn-on-eval nil)
;; :hook ((clojurex-mode-hook
;; clojurescript-mode-hook
;; clojurec-mode-hook
;; clojure-mode-hook)
;; . clj-refactor-mode))
(use-package clj-ns-name
:config
(clj-ns-name-install))
(provide 'corgi-clojure)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; corgi-clojure.el ends here