> (autoload 'xml-mode "psgml" "Major mode to edit XML files." t )
> (setq auto-mode-alist (cons '("\\.[XxRrMmDdTt][TtMmDdSsNnEe][PpAaMmLlFfSsIi]?[EePp]*[Cc]*$" . xml-mode) auto-mode-alist))
which has been working fine for years. It looks as if Emacs 23.2 defines
xml-mode to point to nxml-mode, and this is somehow superseding my .emacs.
Unfortunately I still need to use psgml's xml-mode for all my XML stuff.
Does anyone know how I disable Emacs' new behaviour?
///Peter
http://lists.oasis-open.org/archives/docbook-apps/200707/msg00126.html
Is an article from someone who is switching to nxml in 2007, about 4
years ago......
I was just Googling because i want to know what nXML is, but still have
not found the answer ;)
--
Luuk
nXML is a newer version of the XML syntax-annotation-and-assistance
macros for the Emacs editor.
--
Joe Kesselman,
http://www.love-song-productions.com/people/keshlam/index.html
{} ASCII Ribbon Campaign | "may'ron DaroQbe'chugh vaj bIrIQbej" --
/\ Stamp out HTML mail! | "Put down the squeezebox & nobody gets hurt."
thanks... i will look at it, when i've found some time to do that ;)
--
Luuk
> . . . It looks as if Emacs 23.2 defines xml-mode to point to
> nxml-mode, and this is somehow superseding my .emacs.
(Really? Did you build it yourself?)
> Unfortunately I still need to use psgml's xml-mode for all my XML stuff.
> Does anyone know how I disable Emacs' new behaviour?
I'm still using 22, so I can only guess.
But I'd try starting emacs with the switch --no-site-file .
That should not block your own init file.
-- Bill
you can probably set it back by:
(defalias 'xml-mode 'sgml-xml-mode)
Peter wrote:
> (setq auto-mode-alist (cons '("\\.[XxRrMmDdTt][TtMmDdSsNnEe]
[PpAaMmLlFfSsIi]?[EePp]*[Cc]*$" . xml-mode) auto-mode-alist))
that seems to be pretty bad.
you probably want to use add-to-list instead of setq.
(add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode))
also, the file suffix
"\\.[XxRrMmDdTt][TtMmDdSsNnEe][PpAaMmLlFfSsIi]?[EePp]*[Cc]*$"
seems quite wild. What is it?
nxml-mode is a new mode for xml, written by the xml expert James
Clark, who is also the original author of sgml-mode (html-mode and xml-
mode are parts of sgml-mode). nxml-mode features on-the-fly xml
validation. It's 10k lines of elisp.
the following might provide helpful info:
〈How to Install Emacs Packages〉
http://xahlee.org/emacs/emacs_installing_packages.html
〈New Features in Emacs 23〉
http://xahlee.org/emacs/emacs23_features.html
Xah
it is? am curious how you got the impression that it's not?
> 2) For kui (keyboard user interface) I use keytweak, firemacs, and
> xkeymacs on w32 desktop but on thinkpad I can't get Fn key to do duty as
> a mod key even though xev shows it as rassigned by xmodmap. Since you
> are an ergonomics maven, I was hoping you (or any-one here) might know
> whether the bottom-row keys on a thinkpad could be swapped around and
> re-arranged without resorting to kernel surgery a la Rick Van Rein's
> Funkey patch:
>
> http://rick.vanrein.org/linux/funkey/#modes
>
> Thanks again, Xah, and, in advance, if you know anything about question 2.
if i understand correctly, you are using Windows on a desktop and
linux on your thinkpad labtop. Some problem occur with the linux on
thinkpad?
i dont' think i know the answer anyway.
On Windows, you might try AutoHotkey, which i use. I have some
tutorial here:
〈Windows Programing: AutoHotkey Tutorial〉
http://xahlee.org/mswin/autohotkey.html
according to Wikipedia, there's a linux version of AutoHotkey but i
never tried.
am guessing you can't remap Fn key by software on arbitary laptop
because they are probably hardwired in non-standard ways.
thanks for mentioning keytweak
http://webpages.charter.net/krumsick/
i haven't heard of it before.
Xah
Thanks to Jason Rumney on the emacs-nxml-mode mailing list, the solution
is to replace the autoload above with
(require 'nxml-mode)
(require 'psgml)
This works perfectly.
///Peter
It's a regular expression which covers .xml and a heck of a lot of other
possible extensions, including many you probably didn't intend to accept
(such as .repepepec, for those whose frogs confuse flies and files).
>> also, the file suffix
>> "\\.[XxRrMmDdTt][TtMmDdSsNnEe][PpAaMmLlFfSsIi]?[EePp]*[Cc]*$"
>> seems quite wild. What is it?
>
> It's a regular expression which covers .xml and a heck of a lot of
> other possible extensions, including many you probably didn't intend
> to accept (such as .repepepec, for those whose frogs confuse flies and
> files).
LOL!
--
John Bokma j3b
Blog: http://johnbokma.com/ Facebook: http://www.facebook.com/j.j.j.bokma
Freelance Perl & Python Development: http://castleamber.com/
[Id be interested to know if it does]
> Keytweak
> does the part of AutoHotKey that I'm interested in (substitution in w32
> registry). Most of the rest Emacs can do already and I don't want to
> introduce gratuitous complexity into an area where my understanding is
> already fragile.
>
> On my specific problem, I studied this until I was dizzy and tried
> various combo with xmodmap but with no luck:
>
> http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work
Nice. Very technical and detailed. I'll mention it when i get
questions for ThinkPad.
Thanks for the link.
That's quite a site for ThinkPad!
Xah
Matches .xml and a stack of other related file extensions. Needs pruning :-)
///Peter
> Thanks for the link. It's a little over my head but I'll give it a try.
Have you tried using the xev program to see what keycodes and mappings
are being used? Also worth verifying the key sequence is not being
'stolen' by the window manager etc.
Tim
--
tcross (at) rapttech dot com dot au