That’s just an HTML specific setting telling Sublime that it should open kit
files using this syntax, so that’s normal.
Generally speaking packages can be installed either as sublime-package
files (just a zip
file with the extension changed) or as unpacked files. The sublime-package
variant is preferred because it allows for modifications of package content in a safe way, so you generally see packages installed that way.
You can set this up by using Preferences > Package Settings > Emmet > Settings - User
and then adding the following content (or, if you already have some settings, just include the complete snippets
setting and not the outer {
and }
characters):
{
"snippets": {
"html": {
"abbreviations": {
"img": "<img src='${1}' loading='lazy' width='${2}' height='${3}' alt='${4}'>"
}
}
},
}
You can use this method to add in new snippets on a per-syntax basis and also override existing snippets with content of your own (which is what’s happening here).
In theory you could also create a snippets.json
file in the directory specified in the extensions_path
(which defaults to ~/emmet
) to do the same thing, but I was unable to get it to actually recognize that the file contained any content even though it noticed it, so the setting is probably the easier way to go.