Permalink
Browse files

Fix multiple-cursor keybindings

Lazily loading them didn't work until after they'd been run once -
explicitly setting them with global-set-key fixes this.
  • Loading branch information...
1 parent 04454bf commit 2e9044f7afb411004ef0727670607a93b8651abe @bradwright committed Aug 19, 2013
Showing with 9 additions and 6 deletions.
  1. +9 −6 packages/init-multiple-cursors.el
@@ -1,9 +1,12 @@
(use-package multiple-cursors
- :init (progn )
- :bind (("C-c ." . mc/mark-next-like-this)
- ("C->" . mc/mark-next-like-this)
- ("C-c ," . mc/mark-previous-like-this)
- ("C-<" . mc/mark-previous-like-this)
- ("C-c C-l". mc/mark-all-like-this)))
+ :init
+ (progn
+ ;; these need to be defined here - if they're lazily loaded with
+ ;; :bind they don't work.
+ (global-set-key (kbd "C-c .") 'mc/mark-next-like-this)
+ (global-set-key (kbd "C->") 'mc/mark-next-like-this)
+ (global-set-key (kbd "C-c ,") 'mc/mark-previous-like-this)
+ (global-set-key (kbd "C-<") 'mc/mark-previous-like-this)
+ (global-set-key (kbd "C-c C-l") 'c/mark-all-like-this)))
(provide 'init-multiple-cursors)

0 comments on commit 2e9044f

Please sign in to comment.