This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+misc/multiple-cursors/README.org

63 lines
2.2 KiB
Org Mode
Raw Normal View History

2018-10-27 10:40:57 +00:00
#+TITLE: multiple-cursors layer
2019-05-02 21:49:30 +00:00
#+TAGS: layer|misc
2019-05-07 20:05:06 +00:00
* Table of Contents :TOC_5_gh:noexport:
2018-10-27 10:40:57 +00:00
- [[#description][Description]]
2018-11-08 20:21:30 +00:00
- [[#features][Features:]]
2018-10-27 10:40:57 +00:00
- [[#install][Install]]
- [[#configuration][Configuration]]
- [[#key-bindings][Key bindings]]
- [[#evil-mc][=evil-mc=]]
* Description
2018-11-08 20:06:33 +00:00
** Features:
- support for multiple cursors.
2018-10-27 10:40:57 +00:00
* Install
To use this configuration layer, add it to your =~/.spacemacs=. You will need to
add =multiple-cursors= to the existing =dotspacemacs-configuration-layers= list in this
file.
* Configuration
Currently the only supported backend is =evil-mc=, but more backends will be
2019-03-22 03:28:30 +00:00
available in the future.
2018-10-27 10:40:57 +00:00
#+BEGIN_SRC emacs-lisp
2018-11-08 20:21:30 +00:00
(setq-default dotspacemacs-configuration-layers '(
(multiple-cursors :variables multiple-cursors-backend 'evil-mc))
2018-10-27 10:40:57 +00:00
#+END_SRC
* Key bindings
** =evil-mc=
The =evil-mc= package provides the following key bindings:
| Key binding | Description |
2018-10-27 10:40:57 +00:00
|-------------+------------------------------------|
| ~g r f~ | evil-mc-make-and-goto-first-cursor |
| ~g r h~ | evil-mc-make-cursor-here |
| ~g r j~ | evil-mc-make-cursor-move-next-line |
| ~g r k~ | evil-mc-make-cursor-move-prev-line |
| ~g r l~ | evil-mc-make-and-goto-last-cursor |
| ~g r m~ | evil-mc-make-all-cursors |
| ~g r n~ | evil-mc-skip-and-goto-next-match |
| ~g r N~ | evil-mc-skip-and-goto-next-cursor |
| ~g r p~ | evil-mc-skip-and-goto-prev-match |
| ~g r P~ | evil-mc-skip-and-goto-prev-cursor |
| ~g r r~ | evil-mc-resume-cursors |
| ~g r s~ | evil-mc-pause-cursors |
| ~g r q~ | evil-mc-undo-all-cursors |
| ~g r u~ | evil-mc-undo-last-added-cursor |
2018-10-27 10:40:57 +00:00
For easy navigation you also have the following:
| Key binding | Description |
2018-10-27 11:43:02 +00:00
|-------------+------------------------------------|
| ~M-n~ | evil-mc-make-and-goto-next-cursor |
| ~M-p~ | evil-mc-make-and-goto-prev-cursor |
| ~C-n~ | evil-mc-make-and-goto-next-match |
| ~C-p~ | evil-mc-make-and-goto-prev-match |
| ~C-t~ | evil-mc-skip-and-goto-next-match |
| ~C-M-j~ | evil-mc-make-cursor-move-next-line |
| ~C-M-k~ | evil-mc-make-cursor-move-prev-line |