According the page I linked, the first variable to modify is magic-mode-alist
which has precedence on auto-mode-alist
.
I just added a value at the beginning of the list of matches using the exact same regular expression that was in magic-mode-alist
pointing to html-helper-mode
:
(add-to-list 'magic-mode-alist
'("\\(?:<\\?xml\\s +[^>]*>\\)?\\s *<\\(?:!--\\(?:[^-]\\|-[^-]\\)*-->\\s *<\\)*\\(?:!DOCTYPE\\s +[^>]*>\\s *<\\s *\\(?:!--\\(?:[^-]\\|-[^-]\\)*-->\\s *\<\\)*\\)?[Hh][Tt][Mm][Ll]"
. html-mode))
Works like a charm. Enjoy Aquamacs without whacky html-helper-mode
.