Hi
I'm using the emacs 23.2 package on ubuntu 11.04
I'm trying to use mxml + actionscript mode using MuMaMo as explained here:
http://transfinite.wordpress.com/2009/04/24/multiple-modes-for-mxml-and-actionscript-in-emacs/
When trying to use TAB inside an .mxml file I'm getting an error:
emacs can't find library /usr/share/emacs/23.2/lisp/nxml/nxml-mode.el
I don't see nxml-mode.el in that path but I do see nxml-mode.elc
I've copied the nxml-mode.el file from the emacs source and the error disappeared.
I'm new to emacs so I don't know if this is a bug in emacs, one of the packages or my configuration.
Please see below the way I setup emacs.
Thanks
In ~/.emacs.d/ I've included the actionscript-mode from here
http://austin.pettomato.com/actionscript-mode.el
and nxhtml from
http://ourcomments.org/Emacs/nXhtml/doc/nxhtml.html
My .emacs file looks like this:
(load "~/.emacs.d/nxhtml/autostart.el")
(load-file "~/.emacs.d/actionscript-mode.el")
(autoload 'actionscript-mode "javascript" nil t)
(add-to-list 'auto-mode-alist '("\\.as\\'" . actionscript-mode))
(defun mumamo-chunk-mxml-script (pos min max)
"Find ... , return range and actionscript-mode."
(mumamo-quick-static-chunk pos min max "<Script>" "</Script>" nil 'actionscript-mode nil))
(define-mumamo-multi-major-mode mxml-actionscript-mumamo-mode
"Turn on multiple major modes for MXML files with main mode `nxml-mode'.
This covers inlined Actionscript."
("MXML Actionscript Family" nxml-mode
(mumamo-chunk-mxml-script
)))
(add-to-list 'auto-mode-alist '("\\.mxml$" . mxml-actionscript-mumamo))