Sublime Forum

Clojure files (.clj) set to Java syntax

#1

In Sublime Text 3, when I open a new Clojure (.clj) file, the syntax is set to Java. How can I make ST3 set the syntax to Clojure for .clj files by default?

Thanks!

0 Likes

#2

No one has run into this? I’m sure it’s not just a problem with Clojure… What setting in Sublime controls the default syntax for a file type?

0 Likes

#3

Use “View > Syntax > Open all with current extension as…”.

What ST does is create a syntax-specific settings file with the extensions key, containing extension overrides that take precedence over the extension list that syntax definitions come with.

0 Likes

#4

Thank you!!

0 Likes