use rhtml-mode instead of nxhtml. I can't figure out how to disable warnings and its driven me mad.