Setup indentation rules for common clojure vars

This commit is contained in:
James Conroy-Finn 2015-07-10 10:59:55 +01:00 committed by syl20bnr
parent 7051f91c47
commit 1fd4afb60c

View file

@ -243,7 +243,28 @@ the focus."
:config
(progn
(when clojure-enable-fancify-symbols
(clojure/fancify-symbols 'clojure-mode)))))
(clojure/fancify-symbols 'clojure-mode))
(define-clojure-indent
;; Compojure
(ANY 2)
(DELETE 2)
(GET 2)
(HEAD 2)
(POST 2)
(PUT 2)
(context 2)
(defroutes 'defun)
;; Cucumber
(After 1)
(Before 1)
(Given 2)
(Then 2)
(When 2)
;; Schema
(s/defrecord 2)
;; test.check
(for-all 'defun)))))
(defun clojure/pre-init-popwin ()
(spacemacs|use-package-add-hook popwin