I need some help with in indentation configuration. Current:
(defexpect date-time-tests
(expecting "String conversions"
(expect #inst "2020-04-05T22:28:12.000" (->date-time "2020-04-05T22:28:12.000Z"))
(expect #inst "2020-12-31T23:59:59.999" (->date-time "2020-12-31T23:59:59.999Z"))))
Wanted:
(defexpect date-time-tests
(expecting "String conversions"
(expect #inst "2020-04-05T22:28:12.000" (->date-time "2020-04-05T22:28:12.000Z"))
(expect #inst "2020-12-31T23:59:59.999" (->date-time "2020-12-31T23:59:59.999Z"))))
Any ideas on how to config spacemacs for my needs?I tried that! But it didn't work 😞 probably I was doing something wrong
(define-clojure-indent
(-> 1)
(->> 1))
tried using thatOh, what I meant was that you should use define-clojure-indent
instead of clojure-indent-style
.
So you’d leave clojure-indent-style
set to always-align
, and then (put-clojure-indent 'expecting 2)
.
;; Auto-indent code automatically
;; <https://emacsredux.com/blog/2016/02/07/auto-indent-your-code-with-aggressive-indent-mode/>
(add-hook 'clojure-mode-hook #'aggressive-indent-mode)
;; Indentation of function forms
;; <https://github.com/clojure-emacs/clojure-mode#indentation-of-function-forms>
(setq clojure-indent-style 'align-arguments)
;; Vertically align s-expressions
;; <https://github.com/clojure-emacs/clojure-mode#vertical-alignment>
(setq clojure-align-forms-automatically t)
I commented those 3, but default indentation is still the one I passed as current
. Maybe it's some clojure layer variable?
(setq clojure-indent-style 'always-indent)
this worked