Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Mastering Key Bindings in Emacs. Parent comment
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.
This should do what the original commenter wanted: