Re: disabling esc as prefix
Sean MacLennan <[email protected]>
| Newsgroups | gmane.emacs.xemacs.general |
|---|---|
| Message-ID | <[email protected]> |
bulia byak writes:
> Could anyone suggest how I could disable ESC from being
> a prefix? I tried unsetting it or deleting esc-map but
> this does not work. I want ESC to be a regular key that
> I can bind some function to. But of course I don't want
> to lose my M-key bindings too, i.e. I want Meta to work
> as before.
>
> Is this possible in lisp at all? Or only by patching the
> XEmacs source? If so, could anyone suggest a patch or
> at least give some ideas?
You don't want to do this...... but here is how it is done:
(setq meta-prefix-char -1)
Now you can set the ESC key to anything you want, for example:
(global-set-key "\^[" 'forward-char)
The Meta key will work as before.
WARNING: This *will* cause you grief. For example, in a console based
XEmacs, cursor keys will not work (they contain an ESC).
Cheers,
Sean MacLennan
http://xemacs.seanm.ca/