Attempting to bind M-ESC M-ESC
in the global map to a command:
(global-set-key (kbd "M-ESC M-ESC") #'my-command)
results in the following:
Debugger entered--Lisp error: (error "Key sequence M-ESC M-ESC starts with non-prefix key M-ESC ESC")
I supposed this is due to meta-prefix-char
being ESC
by default, so M-<char>
gets translated into ESC-<char>
. Therefore, M-ESC M-ESC
is ESC ESC ESC ESC
, and ESC ESC ESC
is already bound to keyboard-escape-quit
.
Is there a safe way to separate the Meta
and ESC
keys so a binding like M-ESC M-ESC
is possible? If so, how?