doomemacs/modules/editor/multiple-cursors
Henrik Lissner 1abcf913aa
revert: fix(docs): set mode in file-local vars
emacs-straight/org-mode@e22b4eb7aa introduced a breaking change that
made it impossible to rely on .dir-locals.el to change org-mode buffers
in $EMACSDIR to doom-docs-org-mode (without infinite recursion), so we
used file-local variables in 7e400ab.

emacs-straight/org-mode@215de6176b reverted that change, so we can use
.dir-locals.el again, and this is my preference, since it requires less
boilerplate across our hundreds of org files.

Ref: emacs-straight/org-mode@215de6176b
Ref: emacs-straight/org-mode@e22b4eb7aa
Revert: 7e400abdc0
2022-08-07 19:08:07 +02:00
..
autoload Add eval-and-replace support to evil-mc 2020-08-02 18:11:45 -04:00
config.el fix(multiple-cursors): keybinds for {next,last}-cursor 2022-03-19 16:12:30 +01:00
packages.el bump: :editor 2022-03-31 19:25:50 +02:00
README.org revert: fix(docs): set mode in file-local vars 2022-08-07 19:08:07 +02:00

: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?