¥
Size: a a a
D
DL
(dolist (mapbind blamer-bindings)
(let ((map (make-sparse-keymap)))
;; (define-key map (kbd (car mapbind))
(define-key map (kbd (car mapbind))
(lambda ()
(interactive)
(funcall (cdr mapbind) commit-info)))
D
D
(defun blamer--apply-bindings (text commit-info)
"Apply defined bindings to TEXT and pass COMMIT-INFO to callback."
(let ((map (make-sparse-keymap)))
(dolist (mapbind blamer-bindings)
(define-key map (kbd (car mapbind))
(lambda ()
(interactive)
(funcall (cdr mapbind) commit-info)))
(setq text (propertize text 'keymap map))))
text)
DL
f
f
f
A
DL
f
DL
D
DL
¥
¥