[macemacsjp-english 408] Re: trying to force html-helper instead of HTML

Back to archive index

Pierre Albarede pa.ne****@free*****
Mon Dec 12 04:04:05 JST 2005


> Yes, namely `magic-mode-alist'. :-)

Right !

The job is finally done in this (not cleanest) way:

(setq auto-mode-alist (cons '("\\.s?html?\\(\\.[a-zA-Z_]+\\)?\\'" . 
html-helper-mode) auto-mode-alist))

(setq magic-mode-alist (cons '("\\(?:<\\?xml\\s +[^>]*>\\)?\\s 
*<\\(?:!--\\(?:[^-]\\|-[^-]\\)*-->\\s *<\\)*\\(?:!DOCTYPE\\s +[^>]*>\\s 
*<\\s *\\(?:!--\\(?:[^-]\\|-[^-]\\)*-->\\s *<\\)*\\)?[Hh][Tt][Mm][Ll]" 
. html-helper-mode) magic-mode-alist))

Thanks.




More information about the macemacsjp-english mailing list
Back to archive index