Question: Ok, how do I encode some custom key bindings? . . .
= There are several ways, to do this. You can setup a key binding on the fly. However, what is the use of this? If I want a key binding known and bother to set it up. I want it assigned for a longer term. ie. Globally. For the moment, I'll just cover the first most direct way, with a global duration.
= Bear in mind, though, if you "redefine" a binding which is used by your major / minor modes. You'll overwrite it.
Safe Copy and Edit the ~/.xemacs/custom.el file. Add the following line, after the last statements.
(global-set-key '[(control c)(n)] "Your Name ")
The last member of the list ("Your Name ") is an instruction to directly type this. However, normally, you would call a LISP function. I hope to introduce a generic LISP XEmacs function. So, you can use it to derive more compact custom key bindings. Rather than manually binding them, one by one, here. (Although, placing your function somewhere and the time XEmacs spends loading functions [and libraries] will slow down you speed up time. What did you expect for infinite power? Nothing?)
Platform: Linux
Level: Amateur
GlR
PS. An example of messing up your exit function.
(global-set-key '[(control x)(control c)] 'count-words-buffer)
Now, if you Ctrl-x, Ctrl-c. You can't exit and see a word count of the current buffer. (Menu still works to exit or call Alt-x, save-buffers-kill-emacs, enter.
To restore it, even though, you can just delete the above offending global-set-key, see below.
(global-set-key '[(control x)(control c)] 'save-buffers-kill-emacs)