spacemacs

Spacemacs docs: http://develop.spacemacs.org/doc/DOCUMENTATION.html http://develop.spacemacs.org/layers/+lang/clojure/README.html https://practicalli.github.io/spacemacs/
nmkip 2020-06-09T22:19:25.394100Z

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?

nmkip 2020-06-10T13:52:40.400300Z

I tried that! But it didn't work 😞 probably I was doing something wrong

nmkip 2020-06-10T13:53:19.400500Z

(define-clojure-indent
  (-> 1)
  (->> 1))
tried using that

zane 2020-06-11T17:15:48.414200Z

Oh, what I meant was that you should use define-clojure-indent instead of clojure-indent-style.

zane 2020-06-11T17:18:55.414400Z

So you’d leave clojure-indent-style set to always-align, and then (put-clojure-indent 'expecting 2).

nmkip 2020-06-09T22:20:37.394200Z

;; 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)

nmkip 2020-06-09T22:21:38.394400Z

I commented those 3, but default indentation is still the one I passed as current . Maybe it's some clojure layer variable?

nmkip 2020-06-09T22:36:12.394600Z

(setq clojure-indent-style 'always-indent) this worked