Get it working smoothly with ErgoEmacs and I'll give it a look.
Actually, Emacs folks, please could someone do an Emacs distro with ErgoEmacs pre-integrated, for instance that picks up the OS's language and keyboard settings?