Re: disabling esc as prefix

"bulia byak" <[email protected]>
Newsgroups gmane.emacs.xemacs.general
Message-ID <[email protected]>
>  > Could anyone suggest how I could disable ESC from being 
>  > a prefix? 
> 
> You don't want to do this...... but here is how it is done:
> 
>     (setq meta-prefix-char -1)

Thank you vert much Sean! This worked wonders. IMHO, a great usability improvement for those who also work with other programs besides XEmacs (where non-prefix ESC is the norm).

> WARNING: This *will* cause you grief. For example, in a console based
> XEmacs, cursor keys will not work (they contain an ESC).

Is there any other problems besides console keys? So far my testing (under X of course) reveals nothing suspicious. I never run XEmacs in a console, and I think I'm not alone. I do not suggest disabling esc as prefix in the default install, of course, but I do think that the meta-prefix-char trick needs more advertising. For example, it could be included in the FAQ. Here's what I put in my init.el:

(when (console-on-window-system-p)
  (setq meta-prefix-char -1)
  (global-set-key '(escape) 'keyboard-escape-quit))

Now I can escape anything with single esc, and thanks to console-on-window-system-p, console-based XEmacs is not broken.

Thanks,
--bb
-- 
__________________________________________________________
Sign-up for your own personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

CareerBuilder.com has over 400,000 jobs. Be smarter about your job search
http://corp.mail.com/careers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.