* js2-mode and nxhtml
@ 2011-06-26 15:39 Richard Riley
2011-06-26 16:05 ` Perry Smith
0 siblings, 1 reply; 2+ messages in thread
From: Richard Riley @ 2011-06-26 15:39 UTC (permalink / raw)
To: help-gnu-emacs
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: js2-mode and nxhtml
2011-06-26 15:39 js2-mode and nxhtml Richard Riley
@ 2011-06-26 16:05 ` Perry Smith
0 siblings, 0 replies; 2+ messages in thread
From: Perry Smith @ 2011-06-26 16:05 UTC (permalink / raw)
To: help-gnu-emacs
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.
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-06-26 16:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-26 15:39 js2-mode and nxhtml Richard Riley
2011-06-26 16:05 ` Perry Smith
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).