Skip to content

Instantly share code, notes, and snippets.

@joshnesbitt
Created June 21, 2012 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshnesbitt/2965684 to your computer and use it in GitHub Desktop.
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
# 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