How to create key binding to set XML syntax?
===

I'd like to switch to XML syntax in Sublime Text 2 using some key binding, for example **Ctrl+Shift+X**.
There is a command for that, I can successfully execute it from console:

    view.set_syntax_file("Packages/XML/XML.tmLanguage")

I tried this binding, but it doesn't work:

    { "keys": ["ctrl+shift+x"], "command": "set_syntax_file", "args" : {"syntax_file" : "Packages/XML/XML.tmLanguage" }}

[Here][1] API reference for the **set_syntax_file** command can be found.
Any ideas?


 


  [1]: http://www.sublimetext.com/docs/2/api_reference.html#sublime.View