* keybinding for C-[
@ 2009-01-01 20:23 wlcna
2009-01-03 7:58 ` wlcna
0 siblings, 1 reply; 2+ messages in thread
From: wlcna @ 2009-01-01 20:23 UTC (permalink / raw)
To: help-gnu-emacs
QUESTION: How to sever the tie b/w C-[ and ESC so I can create a keybinding
for C-[?
(Using current version of emacs on win32.)
So I'm aware C-[ is something of a special key equating to ESC of course and
presume this is why the following won't work as desired:
(global-set-key (kbd "C-[") 'myFunction) ; doesn't help.
(global-set-key (kbd "ESC") 'myFunction) ; doesn't help either
I'd like to have ESC work "normally" in emacs but C-[ to do my own thing,
and I have a good reason for this that I can explain if you like...
Also I heavily use vim and I know there the C-[ and ESC equivalency is
exactly the key bindings I want there, just FYI.Q
Any ideas?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: keybinding for C-[
2009-01-01 20:23 keybinding for C-[ wlcna
@ 2009-01-03 7:58 ` wlcna
0 siblings, 0 replies; 2+ messages in thread
From: wlcna @ 2009-01-03 7:58 UTC (permalink / raw)
To: help-gnu-emacs
No responses? Anyway, I was RTFMing and did find a way to capture ESC using
the special "function key" for it that the docs mention, very interesting
and very connected to my question - YET, nothing for C-[....
This did work though to set a key shortcut for ESC, meaning only when the
actual ESC key is hit does this take place, and it does not take place when
the c-[ is hit:
(global-set-key [escape] 'shell)
Of course, what I want is the opposite: I don't care what the ESC key
equates to, but I want to capture the C-[, meaning I type Ctrl-[ - I want
that event.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-01-03 7:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-01 20:23 keybinding for C-[ wlcna
2009-01-03 7:58 ` wlcna
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).