Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I dictating my text via Dragon Naturally Speaking 12 into Emacs. Whenever I say (translation from German): 'open quotes', I expect something like " or » to appear on the screen, but I simply get a message <M-kp-2> is undefined . Same goes for 'close quotes', I get <M-kp-7> is undefined.

Does anybody know how to define those virtual keyboard strokes? (global-set-key [M-kp-2] "»") does not work.

share|improve this question
up vote 1 down vote accepted

This should work:

(global-set-key [M-kp-2] (lambda () (interactive) (insert "»")))

The command passed to global-set-key needs to be a function, even if it's just to insert a string.

share|improve this answer
Thank you. Here -- Germany -- the weekend already started and I'm not able to test before monday. – Keks Dose Oct 19 '12 at 19:40
It works! Thank you very much. – Keks Dose Oct 22 '12 at 8:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.