I'm aware of one Mac application that declares to OS X that it handles Clojure source files: Light Table <http://www.lighttable.com/>.
In its info.plist, Light Table declares ".clj" ".cljs" and ".edn" to map to "Document Type Name" "Clojure Source" and marks itself as the default Editor for them. However, in contrast to its Document Type entry for Javascript Source file, it does not declare any "Document Content Type UTIs" values for them. Wikipedia has a good article on the UTI system (https://en.wikipedia.org/wiki/Uniform_Type_Identifier). It's possible that Light Table could be changed to associate the file extensions above with the UTI "public.source-code". That might give the effect you're after. --Steve On Feb 19, 2014, at 4:10 AM, Matt Mower <matt.mo...@gmail.com> wrote: > Hi. > > I recently bought a nice OSX app called Tembo which makes spotlight searching > a more pleasant experience. In particular it has a "Source Code" grouping > which is handy but know nothing about Clojure files. > > I spoke to the author of Tembo and quote his response here > > >Tembo relies on the Universal Type Identifier hierarchy to map files to > >groups. > >It hard-codes only very few exception. In the case of "source code", there > >is currently no exception. > > > >It will probably not be possible to hard-code an exception for clj/cljs > >Tembo works only with UTIs. The application owning the clj file extension > >will need to provide the mapping from file extension to UTI > >When doing so, it can also specify which high level UTI this conforms to. > >I.e. it can declare it to be source code. > > > >Googling the file extension, I found this: > >http://softnoise.wordpress.com/tag/quicklook/ > > > >It is a hack to have a QuickLook plug-in declare the UTI. This should be > >good enough and should get QuickLook working. > >You probably won't have Spotlight indexing the file contents though. > > I had a look at the QLColourCode plugin but it doesn't build for me in Xcode4 > and doesn't appear to be maintained. There's also a suggestion that it > stopped working in the 10.6->10.7 transition. > > Do any Clojure users on OSX have a working solution for this problem? > > Kind regards, > > Matt > > p.s. I realise this is a Mac specific question but I figured I had a better > shot of finding an answer among Clojure using Mac folk. > > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.