Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to associate .hl files to Clojure syntax highlighting in Light Table?

I'd like to get Hoplon (http://hoplon.io/) code highlighted using Light Table.

like image 346
leontalbot Avatar asked Feb 15 '14 03:02

leontalbot


1 Answers

All you should need to do is this:

 :files [(:lt.objs.files/file-types [{:exts [:hl],
                                      :mime "text/x-clojure",
                                      :name "hl",
                                      :tags [:editor.clj :editor.clojure]}])]

in your user.behavior file.

Source:

https://groups.google.com/forum/#!topic/light-table-discussion/LjlYu6K1sWk

EDIT 5/1/15: The format of Light Table behavior files changed at some point. The following variation on the above worked for me:

 [:files :lt.objs.files/file-types [{:exts [:hl],
                                      :mime "text/x-clojure"
                                      :name "hl"
                                      :tags [:editor.clj :editor.clojure]}]]
like image 67
ClojureMostly Avatar answered Oct 30 '22 22:10

ClojureMostly