doomemacs/modules/editor/multiple-cursors/README.org
Henrik Lissner 7e400abdc0
fix(docs): set mode in file-local vars
Due to emacs-straight/org-mode@e22b4eb, a replacement major mode (for
org-mode) can no longer be specified from .dir-locals.el, as it spirals
into infinite recursion. Therefore, a mode: line is needed in all Doom
docs.

Ref: emacs-straight/org-mode@e22b4eb7aa
2022-08-03 02:46:33 +02:00

2.6 KiB

:editor multiple-cursors

Description   unfold

This module adds a multiple cursors implementation to Emacs (two, if you use evil) that loosely take after multi-cursors in Atom or Sublime Text.

Module flags

This module has no flags.

Hacks

  • Attempts to smooth over multiple-cursors' incompatibilities with evil, which is used internally in some third party plugins.
  • Attempts to smooth over evil-mc's incompatibilities with other packages, like lispy.

TODO Changelog

This module does not have a changelog yet.

Installation

Enable this module in your doom! block.

This module has no external requirements.

TODO Usage

🔨 This module's usage documentation is incomplete. Complete it?

evil-mc

  • The evil-mc keys are under the gz prefix, e.g.

    • gzz to toggle new (frozen) cursors at point.
    • gzt to toggle mirroring on and off (or switch to insert mode to activate them).
    • gzA to place cursors at the end of each selected line.
    • gzI will place them at the beginning.
  • There's also the ex command :mc/REGEXP/FLAGS, for laying down cursors by regex.

evil-multiedit

Designates "interactive edit" regions. Only the textual changes to them are mirrored.

  • M-d to iedit the symbol at point. Again to iedit its next match.
  • M-S-d to do it backwards.
  • R (in visual mode) to iedit all matches of the selection at point in the buffer.
  • Or :iedit/REGEX to iedit all matches of REGEX.

TODO Configuration

🔨 This module has no configuration documentation yet. Write some?

Troubleshooting

There are no known problems with this module. Report one?

Frequently asked questions

This module has no FAQs yet. Ask one?

Appendix

🔨 This module has no appendix yet. Write one?