Set sgml-mode as default in nXhtml

119 Views Asked by At

Well, I have already provided self-explanatory title. =) I use nXhtml for web development, and sgml-mode keybindings suite me better. Is there any chance that I can change default mode for HTML editing?

I reckon that this is probably an RTFM issue, but I find nXhtml documentation quite uptight. =/

1

There are 1 best solutions below

2
On

Had you tried standard method of setting mode with

(add-to-list 'auto-mode-alist '("\\.html?$" . sgml-mode))

? I don't use nXhtml, so I don't know how it set handler for HTML files.