Apply various settings to sgml-mode rather than html-mode, so they
will take place in jinja2-mode and other sgml-derived modes.