Extra functions for multiple-cursors mode
Emacs Lisp
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
LICENSE.txt
README.md
mc-compare.el
mc-cua.el
mc-extras.el
mc-freeze.el
mc-rect.el Add mc-rect for rectangle-mark-mode available from Emacs 24.4. Jan 22, 2015
mc-remove.el

README.md

mc-extras.el

This package contains extra functions for multiple-cursors mode.

Functions

Here is a list of the interactive commands provided by mc-extras:

  • mc/compare-chars
  • mc/compare-chars-backward
  • mc/compare-chars-forward
  • mc/cua-rectangle-to-multiple-cursors
  • mc/freeze-fake-cursors-dwim
  • mc/rect-rectangle-to-multiple-cursors
  • mc/remove-current-cursor
  • mc/remove-duplicated-cursors

Installation

This package is available on MELPA.

Configuration

Suggested key bindings are as follows:

(define-key mc/keymap (kbd "C-. C-d") 'mc/remove-current-cursor)
(define-key mc/keymap (kbd "C-. d")   'mc/remove-duplicated-cursors)

(define-key mc/keymap (kbd "C-. C-.") 'mc/freeze-fake-cursors-dwim)

(define-key mc/keymap (kbd "C-. =")   'mc/compare-chars)

;; Emacs 24.4+ comes with rectangle-mark-mode.
(define-key rectangle-mark-mode-map (kbd "C-. C-,") 'mc/rect-rectangle-to-multiple-cursors)

(define-key cua--rectangle-keymap   (kbd "C-. C-,") 'mc/cua-rectangle-to-multiple-cursors)

To enable interaction between multiple cursors and CUA rectangle copy & paste:

(mc/cua-rectangle-setup)

Author

Copyright (c) 2013-2015 Akinori MUSHA.

Licensed under the 2-clause BSD license. See LICENSE.txt for details.

Visit GitHub Repository for the latest information.