In the past when this happened, I was able to google the answer with no problem, but this time nothing's coming up.
1 Answer
Letter keys are normally bound to self-insert-command
, so you can simply evaluate this:
(global-set-key (kbd "x") #'self-insert-command)
Of course, you'll have to replace that x
with whatever key you want to rebind. You can eval this by yanking it into a scratch buffer, putting point after it and typing C-x C-e or you can enter it in the M-: prompt.
-
1
-
@phils TIL
global-set-key
isinteractive
, I've always usedM-:
or the scratch buffer for it!– OmarOct 5, 2018 at 12:55 -
self-insert-command
, so you can bind it to that function again. Are you asking about a universal approach to rebind a key back to it's original keybinding?self-insert-command
on the basis that it was the most likely way to turn up a duplicate :) I can't comment on how easy it was to find if you didn't already know exactly what you were looking for.