Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/knu/mc-extras.el
Extra functions for multiple-cursors mode
https://github.com/knu/mc-extras.el
Last synced: about 2 months ago
JSON representation
Extra functions for multiple-cursors mode
- Host: GitHub
- URL: https://github.com/knu/mc-extras.el
- Owner: knu
- License: bsd-2-clause
- Created: 2013-09-04T03:47:48.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2023-12-06T16:55:48.000Z (10 months ago)
- Last Synced: 2024-05-11T06:40:31.360Z (5 months ago)
- Language: Emacs Lisp
- Size: 34.2 KB
- Stars: 25
- Watchers: 4
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# mc-extras.el
This package contains extra functions for
[multiple-cursors](https://github.com/magnars/multiple-cursors.el)
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/mark-next-sexps
* mc/mark-previous-sexps
* mc/move-to-column
* mc/rect-rectangle-to-multiple-cursors
* mc/remove-current-cursor
* mc/remove-cursors-at-bol
* mc/remove-cursors-at-eol
* mc/remove-duplicated-cursors
* mc/remove-cursors-on-blank-lines## Installation
This package is available on [MELPA](http://melpa.org/).
## Configuration
Suggested key bindings are as follows:
```elisp
(define-key mc/keymap (kbd "C-. M-C-f") 'mc/mark-next-sexps)
(define-key mc/keymap (kbd "C-. M-C-b") 'mc/mark-previous-sexps)
(define-key mc/keymap (kbd "C-. <") 'mc/mark-all-above)
(define-key mc/keymap (kbd "C-. >") 'mc/mark-all-below)(define-key mc/keymap (kbd "C-. C-d") 'mc/remove-current-cursor)
(define-key mc/keymap (kbd "C-. C-k") 'mc/remove-cursors-at-eol)
(define-key mc/keymap (kbd "C-. d") 'mc/remove-duplicated-cursors)
(define-key mc/keymap (kbd "C-. C-o") 'mc/remove-cursors-on-blank-lines)(define-key mc/keymap (kbd "C-. C-.") 'mc/freeze-fake-cursors-dwim)
(define-key mc/keymap (kbd "C-. .") 'mc/move-to-column)
(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:```elisp
(mc/cua-rectangle-setup)
```## Author
Copyright (c) 2013-2017 Akinori MUSHA.
Licensed under the 2-clause BSD license. See `LICENSE.txt` for
details.Visit [GitHub Repository](https://github.com/knu/mc-extras.el) for the
latest information.