[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ctrl-[ ?

From: Eli Zaretskii
Subject: Re: Ctrl-[ ?
Date: Thu, 06 Jun 2019 22:18:53 +0300

> Cc: address@hidden
> From: Clément Pit-Claudel <address@hidden>
> Date: Thu, 6 Jun 2019 14:48:38 -0400
> > I'm sorry if that sounded unfriendly.  It's just that the answer is so
> > obviously YES that I keep thinking I'm missing something in your
> > questions.  It's like asking whether C-f can be bound to some
> > command.
> I thought so too, but I didn't manage to make it work.  I likely did 
> something silly.  I tried this:
>   (global-set-key (kbd "ESC") #'forward-char)
> …and all that achieved was to break all keybindings starting with meta.

In what buffer?  If there's a local binding, it will shadow the
global one, so to be sure rebind both.

> The reason I'm asking is that, assuming it's possible to rebind ESC, I think 
> there's an easy solution to the OP's question:
> Bind <escape> to esc-map
> Bind ESC to whatever you want C-[ to do.
> As I understood it, the request was this:
> On 2019-06-06 08:37, Jean-Christophe Helary wrote:
> > […] in my other applications I do have the ability to use Ctrl+[ in a way 
> > that is not ESC. Like assign C-[ as a shortcut similarly to C-].
> > 
> > Is there a way to do the same in emacs ?
> Assuming you can bind ESC and <escape> separately, the above should work, 
> shouldn't it?

Of course.  Every key can be rebound in Emacs (except C-g, perhaps).

reply via email to

[Prev in Thread] Current Thread [Next in Thread]