Reputation: 31
I accidentally unbound my space key in emacs with global-unset-key SPC, sopressing SPC causes the error "SPC is undefined". I simply want to make my space bar work again, and can't figure out how to bind a printing character to a key. Thanks for the help.
Answered my own question - M-x global-set-key, SPC, self-insert-command.
Upvotes: 3
Views: 301
Reputation: 73256
A general solution would be to start a second instance of Emacs, check what the key in question is bound to with C-hk<key> (i.e. M-x describe-key
), and then apply that binding back in the original instance.
Upvotes: 2