diff options
| author | benj <benj@rse8.com> | 2018-04-12 16:00:57 -0700 |
|---|---|---|
| committer | benj <benj@rse8.com> | 2018-04-12 16:00:57 -0700 |
| commit | 50421acd2320fd14b7b9786c6e416aed5c1b07f3 (patch) | |
| tree | f9c3ca5afff7d34daa166ac5945a62503487e61e /settings/setup-multiple-cursors.el | |
| parent | a7f61d6bc345aef3333d19b52bf8a0fe57cfefd2 (diff) | |
| download | emacs-50421acd2320fd14b7b9786c6e416aed5c1b07f3.tar emacs-50421acd2320fd14b7b9786c6e416aed5c1b07f3.tar.gz emacs-50421acd2320fd14b7b9786c6e416aed5c1b07f3.tar.bz2 emacs-50421acd2320fd14b7b9786c6e416aed5c1b07f3.tar.lz emacs-50421acd2320fd14b7b9786c6e416aed5c1b07f3.tar.xz emacs-50421acd2320fd14b7b9786c6e416aed5c1b07f3.tar.zst emacs-50421acd2320fd14b7b9786c6e416aed5c1b07f3.zip | |
multiple cursors new bindings
Diffstat (limited to '')
| -rw-r--r-- | settings/setup-multiple-cursors.el | 32 |
1 files changed, 21 insertions, 11 deletions
diff --git a/settings/setup-multiple-cursors.el b/settings/setup-multiple-cursors.el index a1df221..e0886ce 100644 --- a/settings/setup-multiple-cursors.el +++ b/settings/setup-multiple-cursors.el @@ -1,13 +1,23 @@ -(if (equal system-type 'darwin) - (progn - (global-set-key (kbd "C-c <up>") 'mc/edit-lines) - (global-set-key (kbd "C-c <down>" ) 'mc/mark-all-like-this)) - (progn - (global-set-key (kbd "C-c <C-up>") 'mc/edit-lines) - (global-set-key (kbd "C-c <C-down>" ) 'mc/mark-all-like-this))) - -(global-set-key (kbd "C-c <C-right>") 'mc/mark-next-like-this) -(global-set-key (kbd "C-c <C-left>") 'mc/mark-all-in-region-regexp) -(global-set-key (kbd "M-s m") 'mc/mark-all-in-eval) +;;; setup-multiple-cursors.el --- multiple cursors config -*- lexical-binding: t; -*- + +;;; Commentary: + +;; basic multiple cursors config + +;;; Code: +(require 'bindKeys) + + +(bindKeys '("m") + '(("m" . mc/mark-all-like-this) + ("l" . mc/edit-lines) + ("n" . mc/mark-next-like-this) + ("p" . mc/mark-previous-like-this) + ("r" . mc/mark-all-in-region-regexp) + ("o" . mc/mark-pop) + ("s" . mc/sort-regions) + ("i" . mc/insert-numbers))) + (provide 'setup-multiple-cursors) +;;; setup-multiple-cursors.el ends here |
