From: Amin Bandali Date: Sun, 23 Dec 2018 22:53:45 +0000 (-0500) Subject: [emacs] Assimilate multiple-cursors 1.4.0-47-g6a7c3c0 X-Git-Url: https://git.shemshak.org/~bandali/configs/commitdiff_plain/64e429b5d6faf5ae87a832153347d261b8d03583 [emacs] Assimilate multiple-cursors 1.4.0-47-g6a7c3c0 --- diff --git a/.gitmodules b/.gitmodules index 2e96608..69acabf 100644 --- a/.gitmodules +++ b/.gitmodules @@ -184,6 +184,9 @@ [submodule "multi-term"] path = lib/multi-term url = git@github.com:emacsorphanage/multi-term.git +[submodule "multiple-cursors"] + path = lib/multiple-cursors + url = git@github.com:magnars/multiple-cursors.el.git [submodule "mwim"] path = lib/mwim url = git@github.com:alezost/mwim.el.git diff --git a/init.org b/init.org index 2bd523e..536e25d 100644 --- a/init.org +++ b/init.org @@ -1893,7 +1893,16 @@ Also see [[https://www.emacswiki.org/emacs/rebox2][rebox2]]. :bind ("C-=" . er/expand-region)) #+end_src -** TODO multiple-cursors +** multiple-cursors + +#+begin_src emacs-lisp +(use-package multiple-cursors + :bind (("C-c M c" . mc/edit-lines) + ("C-c M n" . mc/mark-next-like-this) + ("C-c M p" . mc/mark-previous-like-this) + ("C-c M a" . mc/mark-all-like-this) + ("C-S-" . mc/add-cursor-on-click))) +#+end_src * Email :PROPERTIES: @@ -1916,7 +1925,6 @@ Also see [[https://www.emacswiki.org/emacs/rebox2][rebox2]]. (use-package gnus :bind (("C-c m" . gnus) - ("C-c M" . gnus-unplugged) ("s-m" . gnus) ("s-M" . gnus-unplugged)) :init diff --git a/lib/multiple-cursors b/lib/multiple-cursors new file mode 160000 index 0000000..6a7c3c0 --- /dev/null +++ b/lib/multiple-cursors @@ -0,0 +1 @@ +Subproject commit 6a7c3c0853e3fe9e4b8e5985dbed8fd4075f33ff