Created
June 21, 2012 13:17
-
-
Save joshnesbitt/2965684 to your computer and use it in GitHub Desktop.
Set JavaScript as default syntax when creating new tab/window in Sublime Text 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Save this file in ~/Library/Application Support/Sublime Text 2/Packages/User | |
import sublime, sublime_plugin | |
class DefaultSyntaxCommand(sublime_plugin.EventListener): | |
def on_new(self, view): | |
view.set_syntax_file('JavaScript/JavaScript.tmLanguage') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment