Skip to content

Instantly share code, notes, and snippets.

@michaelwclark
Created December 4, 2012 17:28
Show Gist options
  • Select an option

  • Save michaelwclark/4206571 to your computer and use it in GitHub Desktop.

Select an option

Save michaelwclark/4206571 to your computer and use it in GitHub Desktop.
Sets current project to updae default syntax for new files or unknown filetypes.
import sublime, sublime_plugin
class DefaultSyntaxCommand(sublime_plugin.EventListener):
def on_new(self, view):
view.set_syntax_file('Packages/Ruby/Ruby.tmLanguage')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment