emmetio / emmet-atom

Emmet support for Atom
MIT License
763 stars 181 forks source link

Compatibility with Syntax Packages #421

Open humanjpg opened 8 years ago

humanjpg commented 8 years ago

Hey there,

First off, I'm a huge fan of Emmet. It has turbo charged my work flow for years - thank you!

Is there any way to make it play ball and override the tab function within the following syntax packages?

Antlers (Statamic) - https://atom.io/packages/language-antlers ExpressionEngine - https://github.com/addisonhall/language-expressionengine-templates

I find when I hit tab it doesn't kick in, unlike within the standard HTML and PHP syntaxes.

Many thanks, J

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/32988429-compatibility-with-syntax-packages?utm_campaign=plugin&utm_content=tracker%2F535900&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F535900&utm_medium=issues&utm_source=github).
humanjpg commented 8 years ago

OK. Just discovered cmd + shift + e works. Is there any way to force it to use tab instead?

sergeche commented 8 years ago

https://github.com/emmetio/emmet-atom#tab-key

humanjpg commented 8 years ago

Ah thanks - I added the following to my keymap.cson file and it worked!

'atom-text-editor[data-grammar="text html statamic"]:not([mini])':
    'tab': 'emmet:expand-abbreviation-with-tab'

'atom-text-editor[data-grammar="text html ee"]:not([mini])':
    'tab': 'emmet:expand-abbreviation-with-tab'