Tugger the SLUGger!SLUG Mailing List Archives

Re: [chat] Emacs question


Hi Alan,

> I want to make an emacs key binding. The key
> combination that I want to
> bind is C-[

> Trouble is, of course, that using [C-[] in the
> define-key statement that
> it stumbles because of the mismatched brackets. I
> can't seem to find the
> appropriate escape sequence.

Ctrl-[ is the same as the Escape key. Which is the
same as the alt key

(ie if you want to go forward a word you can do any
of the following
Alt-f (fastest)
Esc then f 
Ctrl-[ then f

Don't remap Control-[

If you're running out of keys to use, you can remap
two-sequence commands; like Ctrl-x Ctrl-r.

Have a lot of fun with emacs.

Stuart.

http://mobile.yahoo.com.au - Yahoo! Mobile
- Check & compose your email via SMS on your Telstra or Vodafone mobile.