Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use on_new #3

Open
spadgos opened this issue Feb 18, 2012 · 3 comments
Open

Use on_new #3

spadgos opened this issue Feb 18, 2012 · 3 comments

Comments

@spadgos
Copy link
Owner

spadgos commented Feb 18, 2012

Instead of rebinding ctrl+N, using the on_new event should work a bit better.

@Viper007Bond
Copy link

Will this fix the issue where the plugin doesn't take effect if you just start typing in an empty Sublime window? Hope so! :)

@geovedi
Copy link

geovedi commented Apr 6, 2012

@Viper007Bond, you can use this one instead and activate it by adding "on_new": "new_file_syntax" on user settings.

@Jaykul
Copy link

Jaykul commented Feb 27, 2014

This all seems like overkill. Surely all you need is a simple macro?

import sublime, sublime_plugin
class EverythingIsLanguage(sublime_plugin.EventListener):
   def on_new(self, view):
         view.set_syntax_file('PutYourLanguageHere')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants