How to configure Emmet in Atom to work with Elixir .eex files

I tried to add the following config in keymap.cson but it didn’t work:

'atom-text-editor[data-grammar="source eex"]:not([mini])':
  'ctrl-e': 'emmet:expand-abbreviation-with-tab'

Any ideas about what I need to do in order to enable emmet in .eex files?

Thanks in advance!

2 Likes

The issue is your data-grammar. The grammar for eex files is text html elixir. If you change that you should be good.

4 Likes

Correct. It’s working now. Many thanks!

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