<div dir="ltr">Thanks!! This worked!!<div><br></div><div>Though I had to delete the grave accent in:</div><div><br></div><div><span style="color:rgb(0,0,0);font-size:12.8000001907349px">("\`<!DOCTYPE HTML" . web-mode)</span></div><div><br></div><div>and ended up like: </div><div><br></div><div><span style="color:rgb(0,0,0);font-size:12.8000001907349px">("\<!DOCTYPE HTML" . web-mode)</span> </div><div><br></div><div>What a bummer it doesn't work in an easier way for such a commmon file type. Thanks for the help! I'd had this issue for such a long time...</div><div><br></div><div>By the way, I don't know if this is the correct way of answering the mailing list (reply to the post address with cc to you)</div><div><br></div><div>Cheers, </div><div><br></div><div>Eduardo.</div><div><br></div><div><br></div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 8, 2015 at 3:08 PM, Marc Shapiro -- at work <span dir="ltr"><<a href="mailto:marc.shapiro@acm.org" target="_blank">marc.shapiro@acm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
> Date: Tue, 7 Apr 2015 14:03:46 -0600<br>
> From: Eduardo San Miguel <<a href="mailto:abx88as@gmail.com" target="_blank">abx88as@gmail.com</a>><br>
> Subject: Re: [OS X Emacs] Delayed Mail (still being retried)<br>
><br>
> I can't get Aquamacs to start by default with a mode I installed (web-mode<br>
> to be precise). I have asked in stackoverflow and was recommended to post<br>
> to this mailing list:<br>
><br>
> [...]<br>
> (add-to-list 'auto-mode-alist '("\\.html$" . web-mode))<br>
<br>
This is not sufficient.  Some files types are recognised by their extension, in auto-mode-alist as you tried, but others are recognized by content, in magic-mode-alist.<br>
<br>
Here is what works for me, in my .emacs [you will need to replace html-helper-mode by web-mode]:<br>
<br>
(setq magic-mode-alist<br>
      '(("\`<!DOCTYPE HTML" . html-helper-mode)<br>
("\\(?:<\\?xml\\s +[^>]*>\\)?\\s *<\\(?:!--\\(?:[^-]\\|-[^-]\\)*-->\\s *<\\)*\\(?:!DOCTYPE\\s +[^>]*>\\s *<\\s *\\(?:!--\\(?:[^-]\\|-[^-]\\)*-->\\s *<\\)*\\)?[Hh][Tt][Mm][Ll]" . html-helper-mode)<br>
        ("<\\?xml " . xml-mode)<br>
        ("%![^V]" . ps-mode)<br>
        ("# xmcd " . conf-unix-mode)))<br>
<span><font color="#888888"><br>
                                                                Marc<br>
<br>
</font></span></blockquote></div><br></div></div>