Skip to content

Instantly share code, notes, and snippets.

@cjsauer
Created March 24, 2020 20:12
Show Gist options
  • Save cjsauer/407a02529af6871bada5bdb6515ff8ac to your computer and use it in GitHub Desktop.
Save cjsauer/407a02529af6871bada5bdb6515ff8ac to your computer and use it in GitHub Desktop.
Fulcro dom element indentation in Emacs
;;; Directory Local Variables
;;; For more information see (info "(emacs) Directory Variables")
((clojure-mode
(eval define-clojure-indent
(dom/a 1)
(dom/abbr 1)
(dom/address 1)
(dom/altGlyph 1)
(dom/altGlyphDef 1)
(dom/altGlyphItem 1)
(dom/animate 1)
(dom/animateColor 1)
(dom/animateMotion 1)
(dom/animateTransform 1)
(dom/area 1)
(dom/article 1)
(dom/aside 1)
(dom/audio 1)
(dom/b 1)
(dom/base 1)
(dom/bdi 1)
(dom/bdo 1)
(dom/big 1)
(dom/blockquote 1)
(dom/body 1)
(dom/br 1)
(dom/button 1)
(dom/canvas 1)
(dom/caption 1)
(dom/circle 1)
(dom/cite 1)
(dom/clipPath 1)
(dom/code 1)
(dom/col 1)
(dom/colgroup 1)
(dom/color-profile 1)
(dom/cursor 1)
(dom/data 1)
(dom/datalist 1)
(dom/dd 1)
(dom/defs 1)
(dom/del 1)
(dom/desc 1)
(dom/details 1)
(dom/dfn 1)
(dom/dialog 1)
(dom/discard 1)
(dom/div 1)
(dom/dl 1)
(dom/dt 1)
(dom/ellipse 1)
(dom/em 1)
(dom/embed 1)
(dom/feBlend 1)
(dom/feColorMatrix 1)
(dom/feComponentTransfer 1)
(dom/feComposite 1)
(dom/feConvolveMatrix 1)
(dom/feDiffuseLighting 1)
(dom/feDisplacementMap 1)
(dom/feDistantLight 1)
(dom/feDropShadow 1)
(dom/feFlood 1)
(dom/feFuncA 1)
(dom/feFuncB 1)
(dom/feFuncG 1)
(dom/feFuncR 1)
(dom/feGaussianBlur 1)
(dom/feImage 1)
(dom/feMerge 1)
(dom/feMergeNode 1)
(dom/feMorphology 1)
(dom/feOffset 1)
(dom/fePointLight 1)
(dom/feSpecularLighting 1)
(dom/feSpotLight 1)
(dom/feTile 1)
(dom/feTurbulence 1)
(dom/fieldset 1)
(dom/figcaption 1)
(dom/figure 1)
(dom/filter 1)
(dom/font 1)
(dom/font-face 1)
(dom/font-face-format 1)
(dom/font-face-name 1)
(dom/font-face-src 1)
(dom/font-face-uri 1)
(dom/footer 1)
(dom/foreignObject 1)
(dom/form 1)
(dom/g 1)
(dom/glyph 1)
(dom/glyphRef 1)
(dom/h1 1)
(dom/h2 1)
(dom/h3 1)
(dom/h4 1)
(dom/h5 1)
(dom/h6 1)
(dom/hatch 1)
(dom/hatchpath 1)
(dom/head 1)
(dom/header 1)
(dom/hkern 1)
(dom/hr 1)
(dom/html 1)
(dom/i 1)
(dom/iframe 1)
(dom/image 1)
(dom/img 1)
(dom/input 1)
(dom/ins 1)
(dom/kbd 1)
(dom/keygen 1)
(dom/label 1)
(dom/legend 1)
(dom/li 1)
(dom/line 1)
(dom/linearGradient 1)
(dom/link 1)
(dom/main 1)
(dom/map 1)
(dom/mark 1)
(dom/marker 1)
(dom/mask 1)
(dom/menu 1)
(dom/menuitem 1)
(dom/mesh 1)
(dom/meshgradient 1)
(dom/meshpatch 1)
(dom/meshrow 1)
(dom/meta 1)
(dom/metadata 1)
(dom/meter 1)
(dom/missing-glyph 1)
(dom/mpath 1)
(dom/nav 1)
(dom/noscript 1)
(dom/object 1)
(dom/ol 1)
(dom/optgroup 1)
(dom/option 1)
(dom/output 1)
(dom/p 1)
(dom/param 1)
(dom/path 1)
(dom/pattern 1)
(dom/picture 1)
(dom/polygon 1)
(dom/polyline 1)
(dom/pre 1)
(dom/progress 1)
(dom/q 1)
(dom/radialGradient 1)
(dom/rect 1)
(dom/rp 1)
(dom/rt 1)
(dom/ruby 1)
(dom/s 1)
(dom/samp 1)
(dom/script 1)
(dom/section 1)
(dom/select 1)
(dom/set 1)
(dom/small 1)
(dom/solidcolor 1)
(dom/source 1)
(dom/span 1)
(dom/stop 1)
(dom/strong 1)
(dom/style 1)
(dom/sub 1)
(dom/summary 1)
(dom/sup 1)
(dom/svg 1)
(dom/switch 1)
(dom/symbol 1)
(dom/table 1)
(dom/tbody 1)
(dom/td 1)
(dom/text 1)
(dom/textPath 1)
(dom/textarea 1)
(dom/tfoot 1)
(dom/th 1)
(dom/thead 1)
(dom/time 1)
(dom/title 1)
(dom/tr 1)
(dom/track 1)
(dom/tref 1)
(dom/tspan 1)
(dom/u 1)
(dom/ul 1)
(dom/unknown 1)
(dom/use 1)
(dom/var 1)
(dom/video 1)
(dom/view 1)
(dom/vkern 1)
(dom/wbr 1)
)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment