Skip to content

Instantly share code, notes, and snippets.

View handlename's full-sized avatar

NAGATA Hiroaki handlename

View GitHub Profile
@yuutayamada
yuutayamada / use-mykie-el-with multiple-cursor.el
Created January 7, 2014 19:09
Use this snippet if you encountered some trouble when you are using mykie.el with multiple-cursor.el
(eval-when-compile (require 'cl))
(defun* my/set-keybinds (map &rest key-and-func)
(loop with use-keymap = (keymapp map)
for i from 0 to (1- (length key-and-func)) by 2
for key = (nth i key-and-func)
for formatted-key = (if (vectorp key) key (kbd key))
for func = (nth (1+ i) key-and-func)
if use-keymap
do (define-key map formatted-key func)