senny / cabbage

get the maximum out of emacs
http://senny.github.com/cabbage/
156 stars 21 forks source link

js/coffee based erb files autoloads the specific language mode #211

Closed tonini closed 9 years ago

tonini commented 9 years ago

@senny In my workaday I also using *.js.erb and legacy .coffee.erb :hankey: files. :-) I think the specific language mode should be also loaded with that file endings.

Cheers

senny commented 9 years ago

Did it currently highlight the embedded ruby or nothing at all?

tonini commented 9 years ago

It highlights nothing at all

senny commented 9 years ago

I see... Mixed modes is something that Emacs can't really do. I'm not sure which one is better:

At least when there is no highlighting you recognize that it's not supported. Having partially working highlighting usually drives me mad.

I'm leaning towards keeping this as a user-specific configuration.

/cc @jone

senny commented 9 years ago

@tonini let's keep this user specific for now. Maybe someday Emacs will be able to deal with mixed modes in a sane way :hamster: