help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

js2-mode and nxhtml


From: Richard Riley
Subject: js2-mode and nxhtml
Date: Sun, 26 Jun 2011 17:39:21 +0200
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.2 (gnu/linux)

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 via email to

[Prev in Thread] Current Thread [Next in Thread]