Vinh Nguyen
Vinh Nguyen

Reputation: 1132

emacs: remapping C-[ (currently ESC)

I'm using emacs 23 on ubuntu 10.04. I would like to remap the "C-[" binding. Currently, when I press it, it gives me "ESC". Is there a way to remap it?

Upvotes: 0

Views: 892

Answers (2)

Drew
Drew

Reputation: 30718

C-[ is the ASCII ESCAPE character, which Emacs usually writes as ESC.

There is no key involved here (it's a character), and there is no key binding involved here. Or rather, your keyboard's Escape key sends the control character ESCAPE (also written C-[ and ESC).

Upvotes: 0

Bozhidar Batsov
Bozhidar Batsov

Reputation: 56665

This is not an Emacs binding, but has global effect in X and it's used as handier substitute for ESC for people practicing touch typing. I guess you'll have to modify the X keymap if you want to use it in another fashion, but I wouldn't advice that.

Upvotes: 2

Related Questions