Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am trying to associate the keyboard shortcut Control + F10 with gud-step in GUD in Emacs.

I thought the following would do the trick, but it doesn't:

(define-key gud-mode-map '[C-f10] 'gud-step)


My mistake. The above actually works. Sorry for the confusion. Instead of deleting the question, we can close this thread in case anybody ever needs to set up a similar keyboard shortcut.

share|improve this question

closed as too localized by Gilles, Mat, Michael Mrozek Feb 12 '12 at 19:38

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.

Works for me. What happens when you press C-f10? –  Gilles Feb 11 '12 at 23:07
You are right @Guilles. Sorry for the confusion. We can close the thread if you or others want. –  Amelio Vazquez-Reina Feb 11 '12 at 23:20
By the way, @Guilles, to clarify, the problem is that I was using the keyboard shortcut on the buffer with the code, and not on the buffer where pdb was running. It would be great if I could trigger the shortcut from the buffer with the code as well. I will probably ask a question about this in a separate thread. –  Amelio Vazquez-Reina Feb 11 '12 at 23:23

Browse other questions tagged or ask your own question.