I’ve installed psgml 1.4.0-9 and psgml-html-mode for DTD-aware editing of HTML.* But the built-in
html-mode seems to be causing some problems: some tags are highlighted in
font-lock-function-name-face (as the built-in
sgml-mode does), some in
font-lock-type-face (as PSGML does), and they get recoloured depending on what I do (scrolling generally causes
font-lock-type-face to take over, but the initial screen full of code is in
font-lock-function-name-face). Most annoyingly, aiui PSGML is supposed to offer SGML-correct indenting taking account of omitted close tags, but afaict
sgml-mode is taking control of indentation, meaning when I
indent-region etc, what happens is not DTD-aware. I also have two SGML entries in my menu bar: the first (the one on the left) is from PSGML, the second from
sgml-mode.el.gz are inside my system Emacs installation (which I am reluctant to go hacking around inside by deleting or changing files), how can I completely disable all their behaviour and everything that they’re loading?
* Yes, I’m aware that HTML is not technically an SGML application any more, but the syntax is close enough, and no other HTML editing mode I’m aware of (including
html-helper-mode, and the HTML server for
lsp-mode) is properly aware of implicit close tags in HTML — they think
<p>hello <p>world creates two nested
p elements, rather than two consecutive ones. PSGML gets it right.
Edit: My setup for PSGML etc, if it helps, is here. Everything else needed should also be in the same repo.