How to disable Emmet in specific language?

310 views Asked by At

I'm using Atom as my code editor. Is there a way to disable Emmet on a specific language (like SASS)? Thank you.

1

There are 1 answers

3
Syden On BEST ANSWER

You can try with unset! on atom's keymap.cson, try to maintain spaces in the code block below exact (replace sass with desired language):

'atom-text-editor[data-grammar~="sass"]:not([mini])':
  'tab': 'unset!'

Edit: If you do not wish to disable it, you could use Emmet with a custom-command like alt-tab or whatever:

# Emmet expand customization
'atom-text-editor:not([mini])':
  'alt-tab': 'emmet:expand-abbreviation-with-tab'

Or change emmet tab command only in certain language:

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