spacemacs

Spacemacs docs: http://develop.spacemacs.org/doc/DOCUMENTATION.html http://develop.spacemacs.org/layers/+lang/clojure/README.html https://practicalli.github.io/spacemacs/
jumar 2020-12-21T16:32:30.229300Z

Is there an easy way to transform the first form into the second?

(testing "abc"
  (let [a 1]))
;;=>
(let [a 1]
  (testing "abc"
    ))

sgepigon 2020-12-21T18:28:17.229400Z

(cljr-expand-let) ;; SPC m r e l

sgepigon 2020-12-21T18:28:40.229600Z

Note: This is in spacemacs if you enable clj-refactor: https://practicalli.github.io/spacemacs/refactor/clj-refactor/#enable-clj-refactor

erwinrooijakkers 2020-12-21T20:38:11.230300Z

this can be done with convolute of lisp-mode with SPC-kc

erwinrooijakkers 2020-12-21T20:39:47.230700Z

See more convolute examples here: https://youtu.be/D6h5dFyyUX0?t=101

erwinrooijakkers 2020-12-21T20:43:25.230900Z

The ,rel example I did not know, seems to do something similar but only with the first let