0

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.

1 Answer 1

1

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.

1
  • Thank you. Here -- Germany -- the weekend already started and I'm not able to test before monday.
    – Keks Dose
    Oct 19, 2012 at 19:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .