News for hackers. Stuff that matters.
Re:Mastering Key Bindings in Emacs by silentbicycle on Wednesday February 09, 2011 @11:24AM (#2197974)
Bingo. Thanks.

This should do what the original commenter wanted:

    (defun insert-keybinding (k)
      "Insert code for a keybinding."
      (interactive "kKey sequence: ")
      (insert (concat "(global-set-key (kbd \""
    		  (key-description k)
    		  "\") 'function-name)")))

There are no comments on this comment yet.