On Feb 26, 2015, at 8:01 AM, Erik Griffin <
griffi...@gmail.com> wrote:
> In the meantime, is it possible to adjust the HTML syntax editor to indent only 2 spaces? Or is that completely tied to Code Mirror
That’s configurable in user.behaviors. You can change it per editor. You’ll need to bind an editor type to the file extension if it isn’t already bound. Here’s what I have:
[:editor.html :lt.objs.editor/wrap]
[:editor.html :lt.objs.editor/tab-settings false 4 4]
[:editor.javascript :lt.objs.editor/wrap]
[:editor.javascript :lt.objs.editor/tab-settings false 4 4]
[:editor.styl :lt.objs.editor/tab-settings true 4 4]
[:files :lt.objs.files/file-types [{:exts [:cfm], :mime "htmlmixed", :tags [:editor.html], :name "coldfusion"}
{:exts [:cfc], :mime "text/javascript", :tags [:editor.javascript], :name "component"}
{:exts [:cljx], :mime "text/x-clojure", :tags [:editor.clj :editor.clojure], :name "clojurex"}
{:exts [:fr], :mime "text/x-haskell", :tags [:editor.haskell], :name "frege"}
{:exts [:gwn], :mime "text/x-clojure", :tags [:editor.clj :editor.clojure], :name "gershwin"}
{:exts [:elm], :mime "text/x-haskell", :tags [:editor.haskell], :name "elm"}]]