This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-08-15
Channels
- # architecture (2)
- # beginners (16)
- # boot (2)
- # cider (4)
- # clara (6)
- # cljs-dev (78)
- # cljsrn (3)
- # clojure (158)
- # clojure-austin (1)
- # clojure-belgium (1)
- # clojure-dusseldorf (19)
- # clojure-italy (8)
- # clojure-russia (3)
- # clojure-spec (77)
- # clojure-uk (61)
- # clojurescript (341)
- # cursive (9)
- # data-science (12)
- # datomic (18)
- # emacs (9)
- # fulcro (109)
- # hoplon (10)
- # juxt (2)
- # leiningen (2)
- # lumo (31)
- # off-topic (1)
- # om (4)
- # onyx (40)
- # parinfer (17)
- # re-frame (36)
- # reagent (19)
- # spacemacs (10)
- # vim (60)
- # yada (20)
Add this to your user-config in your dotfile:
;; Require clojure-mode for ClojureScript indenting
(require 'clojure-mode)
;; ClojureScript indenting
(define-clojure-indent
(dom/a :defn)
(dom/abbr :defn)
(dom/address :defn)
(dom/area :defn)
(dom/article :defn)
(dom/aside :defn)
(dom/audio :defn)
(dom/b :defn)
(dom/base :defn)
(dom/bdi :defn)
(dom/bdo :defn)
(dom/big :defn)
(dom/blockquote :defn)
(dom/body :defn)
(dom/br :defn)
(dom/button :defn)
(dom/canvas :defn)
(dom/caption :defn)
(dom/cite :defn)
(dom/code :defn)
(dom/col :defn)
(dom/colgroup :defn)
(dom/data :defn)
(dom/datalist :defn)
(dom/dd :defn)
(dom/del :defn)
(dom/details :defn)
(dom/dfn :defn)
(dom/dialog :defn)
(dom/dl :defn)
(dom/dt :defn)
(dom/em :defn)
(dom/embed :defn)
(dom/fieldset :defn)
(dom/figcaption :defn)
(dom/figure :defn)
(dom/footer :defn)
(dom/form :defn)
(dom/h1 :defn)
(dom/h2 :defn)
(dom/h3 :defn)
(dom/h4 :defn)
(dom/h5 :defn)
(dom/h6 :defn)
(dom/head :defn)
(dom/header :defn)
(dom/hr :defn)
(dom/html :defn)
(dom/i :defn)
(dom/iframe :defn)
(dom/img :defn)
(dom/ins :defn)
(dom/kbd :defn)
(dom/keygen :defn)
(dom/label :defn)
(dom/legend :defn)
(dom/li :defn)
(dom/link :defn)
(dom/main :defn)
(dom/map :defn)
(dom/mark :defn)
(dom/menu :defn)
(dom/menuitem :defn)
(dom/meta :defn)
(dom/meter :defn)
(dom/nav :defn)
(dom/noscript :defn)
(dom/object :defn)
(dom/ol :defn)
(dom/optgroup :defn)
(dom/output :defn)
(dom/p :defn)
(dom/param :defn)
(dom/picture :defn)
(dom/pre :defn)
(dom/progress :defn)
(dom/q :defn)
(dom/rp :defn)
(dom/rt :defn)
(dom/ruby :defn)
(dom/s :defn)
(dom/samp :defn)
(dom/script :defn)
(dom/section :defn)
(dom/small :defn)
(dom/source :defn)
(dom/span :defn)
(dom/strong :defn)
(dom/style :defn)
(dom/sub :defn)
(dom/summary :defn)
(dom/sup :defn)
(dom/table :defn)
(dom/tbody :defn)
(dom/td :defn)
(dom/tfoot :defn)
(dom/th :defn)
(dom/thead :defn)
(dom/time :defn)
(dom/title :defn)
(dom/tr :defn)
(dom/track :defn)
(dom/u :defn)
(dom/ul :defn)
(dom/var :defn)
(dom/video :defn)
(dom/wbr :defn)
(dom/div :defn)
(testing '(:defn (1)))
(specification '(:defn (1)))
(behaviour '(:defn (1)))
(defui '(:defn (1))))
(dom/div #js {:className s-results}
(dom/div #js {:className "content-wrap"}
(dom/p #js {} "Suggested grants")))
(dom/div #js {:className s-results}
(dom/div #js {:className "content-wrap"}
(dom/p #js {} "Suggested grants")))
there’s some stuff here:
https://github.com/clojure-emacs/clojure-mode#indentation-options
Looks like you’d have to use define-clojure-indent
and figure out what settings you’d need
ahh 🙂 was hoping for a quick and easy setting, adding :always-ident did not work, or maybe I did not add it right
replied to a thread:is there any way to make spacemacs format my code like:
@fatihict Thank you so much !!!! Works perfectly 🙂