logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: Emacs refuses to default to using nXML mode on HTML files: msg#00022

Subject: Re: Emacs refuses to default to using nXML mode on HTML files
James J. Ramsey wrote:
> I already have this line in ~/.emacs:
> 
> (setq auto-mode-alist (cons '("\\.html\\'" .
> nxml-mode) auto-mode-alist))
> 
> Somehow it's being overridden, and I don't know why.
> When I start up Emacs and load an XHTML file,
> sgml-mode gets applied to the file by default.
> Autoloading nxml-mode doesn't help. (It's already
> autoloaded by rng-auto.el, anyway.) If I type "M-x
> nxml-mode", I can get nxml-mode to be applied to the
> file; Emacs just won't do it by default.
> 
> Any idea what's going on?

I had a similar problem recently.  Try it on a fresh (empty) .html file.
 Then look for an HTML comment in the original file that contains

   mode: something-other-than-nxml

This text is being interpreted by Emacs.

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com



------------------------ Yahoo! Groups Sponsor --------------------~--> 
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/2U_rlB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/emacs-nxml-mode/

<*> To unsubscribe from this group, send an email to:
    emacs-nxml-mode-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 






<Prev in Thread] Current Thread [Next in Thread>