unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Perry Smith <pedzsan@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: js2-mode and nxhtml
Date: Sun, 26 Jun 2011 11:05:20 -0500	[thread overview]
Message-ID: <0E6C50AD-EFD9-47E2-A24D-BCC6D85A7682@gmail.com> (raw)
In-Reply-To: <80hb7csity.fsf@news.eternal-september.org>

Oh bummer... I had this problem but did not keep careful notes.

If you dump out the auto-mode-alist before nxhtml loads, it will be like you want it.  If you dump it out after it loads, it will have extra entries that is causing the problem.  I don't recall what I did to fix it.  I may have just found where nxhtml added its entries and deleted it from my copy of the source.

Hopefully, this vague reply will help you track it down.

pedz


On Jun 26, 2011, at 10:39 AM, Richard Riley wrote:

> 
> I'm trying to get the el-get js2-mode loading properly with nxhtml
> installed. My .js files are still opening as "javascript-mode" instead
> of javascript-ide mode however.
> 
> I modified mumamo-major-modes
> 
> mumamo-major-modes is a variable defined in `mumamo.el'.
> Its value is 
> ((asp-js-mode js-mode javascript-mode espresso-mode ecmascript-mode)
> (asp-vb-mode visual-basic-mode)
> (asp-csharp-mode csharp-mode)
> (javascript-mode js2-mode js-mode javascript-mode espresso-mode ecmascript-mode)
> (java-mode jde-mode java-mode)
> (groovy-mode groovy-mode)
> (nxhtml-mode nxhtml-mode html-mode))
> 
> What else needs to be done?
> 
> I also added js2-mode to the auto-mode-alist
> 
> (add-to-list 'auto-mode-alist '("\\.js$" . js2-mode))
> 
> thanks
> 
> r.
> 
> 




      reply	other threads:[~2011-06-26 16:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-26 15:39 js2-mode and nxhtml Richard Riley
2011-06-26 16:05 ` Perry Smith [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0E6C50AD-EFD9-47E2-A24D-BCC6D85A7682@gmail.com \
    --to=pedzsan@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).