Skip to content

Instantly share code, notes, and snippets.

@edgar
Created May 18, 2018 20:22
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 edgar/68e1200ae8e7531cdbd6c97ec7fd6c21 to your computer and use it in GitHub Desktop.
Save edgar/68e1200ae8e7531cdbd6c97ec7fd6c21 to your computer and use it in GitHub Desktop.
Use Markdown as default language for new docs.
# Add this script in your SublimeText Packages/User directory
import sublime, sublime_plugin
class DefaultSyntaxCommand(sublime_plugin.EventListener):
def on_new(self, view):
view.set_syntax_file('Packages/Markdown/Markdown.tmLanguage')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment