unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* 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

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).