I want to bind "C-[" like so:
(define-key py-mode-map "\C-[" 'py-shift-region-left)
The problem is, Emacs sees "C-[" as ESC. Am I missing something?
I want to bind "C-[" like so:
(define-key py-mode-map "\C-[" 'py-shift-region-left)
The problem is, Emacs sees "C-[" as ESC. Am I missing something?
Well, as it happens, "\C-[" and ESC are the same character. They are also being reported as the same by xkbwatch
, which leads me to believe that X
is reporting those keypresses to applications in the same way, so there's nothing to be done on the Emacs side of things. As for somehow making "\C-[" not act like ESC at a lower level, unfortunately I've no idea, I always considered it a pinky-saving feature.