[Top][All Lists]

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

Re: can't find library nxml-mode.el

From: Andreas Röhler
Subject: Re: can't find library nxml-mode.el
Date: Wed, 08 Jun 2011 10:02:29 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; de; rv: Gecko/20110414 SUSE/3.1.10 Thunderbird/3.1.10

Am 05.06.2011 04:23, schrieb pablo platt:

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:

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


thanks pointing at that.

Think it's just an error in your configuration,

As nxml-mode is installed already, there is no need to load this file.

Just do M-x nxml-mode resp. (require 'nxml-mode)

BTW Emacs doesn't see this file because it's zipped probably.

Should exist as "nxml-mode.el.gz"

In cases, you want to install some new stuff,
AFAIU the recommended way to add mode-files is adding it's directory to Eamcs' load-path and afterwards require it:

(add-to-list 'load-path "MODE-DIRECTORY")
(require 'MY_NEW_MODE')



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.


In ~/.emacs.d/ I've included the actionscript-mode from here
and nxhtml from

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

(add-to-list 'auto-mode-alist '("\\.mxml$" . mxml-actionscript-mumamo))

reply via email to

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