user1113858
user1113858

Reputation: 31

Accidentally unbound keyboard character in emacs

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

Answers (1)

phils
phils

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

Related Questions