mirror of
https://github.com/magnars/multiple-cursors.el.git
synced 2025-10-13 21:03:05 +00:00
parent
b9b851a767
commit
b880554d04
10
README.md
10
README.md
@ -1,7 +1,7 @@
|
|||||||
# multiple-cursors.el [](http://travis-ci.org/magnars/multiple-cursors.el)
|
# multiple-cursors.el [](http://travis-ci.org/magnars/multiple-cursors.el)
|
||||||
|
|
||||||
Multiple cursors for Emacs. This is some pretty crazy functionality, so yes,
|
Multiple cursors for Emacs. This is some pretty crazy functionality, so yes,
|
||||||
there are kinks. Don't be afraid tho, I've been using it since 2011 with
|
there are kinks. Don't be afraid though, I've been using it since 2011 with
|
||||||
great success and much merriment.
|
great success and much merriment.
|
||||||
|
|
||||||
## Maintenance warning
|
## Maintenance warning
|
||||||
@ -82,7 +82,7 @@ You can [watch an intro to multiple-cursors at Emacs Rocks](http://emacsrocks.co
|
|||||||
- `mc/mark-previous-like-this-symbol`: Adds a cursor and region at the next part of the buffer backwards that matches the current region, if no region is selected it selects the symbol at the point.
|
- `mc/mark-previous-like-this-symbol`: Adds a cursor and region at the next part of the buffer backwards that matches the current region, if no region is selected it selects the symbol at the point.
|
||||||
- `mc/mark-previous-word-like-this`: Like `mc/mark-previous-like-this` but only for whole words.
|
- `mc/mark-previous-word-like-this`: Like `mc/mark-previous-like-this` but only for whole words.
|
||||||
- `mc/mark-previous-symbol-like-this`: Like `mc/mark-previous-like-this` but only for whole symbols.
|
- `mc/mark-previous-symbol-like-this`: Like `mc/mark-previous-like-this` but only for whole symbols.
|
||||||
- `mc/mark-more-like-this-extended`: Use arrow keys to quickly mark/skip next/previous occurances.
|
- `mc/mark-more-like-this-extended`: Use arrow keys to quickly mark/skip next/previous occurrences.
|
||||||
- `mc/add-cursor-on-click`: Bind to a mouse event to add cursors by clicking. See tips-section.
|
- `mc/add-cursor-on-click`: Bind to a mouse event to add cursors by clicking. See tips-section.
|
||||||
- `mc/mark-pop`: Set a cursor at the current point and move to the next (different) position on the mark stack. This allows for fine grained control over the placement of cursors.
|
- `mc/mark-pop`: Set a cursor at the current point and move to the next (different) position on the mark stack. This allows for fine grained control over the placement of cursors.
|
||||||
|
|
||||||
@ -90,8 +90,8 @@ You can [watch an intro to multiple-cursors at Emacs Rocks](http://emacsrocks.co
|
|||||||
|
|
||||||
- `mc/unmark-next-like-this`: Remove the cursor furthest down in the buffer.
|
- `mc/unmark-next-like-this`: Remove the cursor furthest down in the buffer.
|
||||||
- `mc/unmark-previous-like-this`: Remove the cursor furthest up in the buffer.
|
- `mc/unmark-previous-like-this`: Remove the cursor furthest up in the buffer.
|
||||||
- `mc/skip-to-next-like-this`: Remove the cursor furthest down, marking the next occurance down.
|
- `mc/skip-to-next-like-this`: Remove the cursor furthest down, marking the next occurrence down.
|
||||||
- `mc/skip-to-previous-like-this`: Remove the cursor furthest up, marking the next occurance up.
|
- `mc/skip-to-previous-like-this`: Remove the cursor furthest up, marking the next occurrence up.
|
||||||
|
|
||||||
### Mark many occurrences
|
### Mark many occurrences
|
||||||
|
|
||||||
@ -134,7 +134,7 @@ You can [watch an intro to multiple-cursors at Emacs Rocks](http://emacsrocks.co
|
|||||||
|
|
||||||
- Try pressing `mc/mark-next-like-this-word` or
|
- Try pressing `mc/mark-next-like-this-word` or
|
||||||
`mc/mark-next-like-this-symbol` with no region selected. It will
|
`mc/mark-next-like-this-symbol` with no region selected. It will
|
||||||
mark the word or symbol and add a cursor at the next occurance
|
mark the word or symbol and add a cursor at the next occurrence
|
||||||
|
|
||||||
- Try pressing `mc/mark-all-like-this-dwim` on a tagname in html-mode.
|
- Try pressing `mc/mark-all-like-this-dwim` on a tagname in html-mode.
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@ mode. To leave this mode press <return> or \"C-g\""
|
|||||||
:group 'multiple-cursors)
|
:group 'multiple-cursors)
|
||||||
|
|
||||||
(defcustom hum/placeholder "..."
|
(defcustom hum/placeholder "..."
|
||||||
"Placeholder which will be placed insted of hiden text"
|
"Placeholder which will be placed instead of hidden text"
|
||||||
:type '(string)
|
:type '(string)
|
||||||
:group 'multiple-cursors)
|
:group 'multiple-cursors)
|
||||||
|
|
||||||
|
@ -124,7 +124,7 @@
|
|||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun mc/vertical-align (character)
|
(defun mc/vertical-align (character)
|
||||||
"Aligns all cursors vertically with a given CHARACTER to the one with the
|
"Aligns all cursors vertically with a given CHARACTER to the one with the
|
||||||
highest colum number (the rightest).
|
highest column number (the rightest).
|
||||||
Might not behave as intended if more than one cursors are on the same line."
|
Might not behave as intended if more than one cursors are on the same line."
|
||||||
(interactive "c")
|
(interactive "c")
|
||||||
(let ((rightest-column (current-column)))
|
(let ((rightest-column (current-column)))
|
||||||
|
@ -607,7 +607,7 @@ from being executed if in multiple-cursors-mode."
|
|||||||
(when interprogram-paste
|
(when interprogram-paste
|
||||||
;; Add interprogram-paste to normal kill ring, just
|
;; Add interprogram-paste to normal kill ring, just
|
||||||
;; like current-kill usually does for itself.
|
;; like current-kill usually does for itself.
|
||||||
;; We have to do the work for it tho, since the funcall only returns
|
;; We have to do the work for it though, since the funcall only returns
|
||||||
;; something once. It is not a pure function.
|
;; something once. It is not a pure function.
|
||||||
(let ((interprogram-cut-function nil))
|
(let ((interprogram-cut-function nil))
|
||||||
(if (listp interprogram-paste)
|
(if (listp interprogram-paste)
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
;;; Commentary:
|
;;; Commentary:
|
||||||
|
|
||||||
;; Multiple cursors for Emacs. This is some pretty crazy functionality, so yes,
|
;; Multiple cursors for Emacs. This is some pretty crazy functionality, so yes,
|
||||||
;; there are kinks. Don't be afraid tho, I've been using it since 2011 with
|
;; there are kinks. Don't be afraid though, I've been using it since 2011 with
|
||||||
;; great success and much merriment.
|
;; great success and much merriment.
|
||||||
|
|
||||||
;; ## Basic usage
|
;; ## Basic usage
|
||||||
@ -68,7 +68,7 @@
|
|||||||
;; - `mc/mark-previous-like-this`: Adds a cursor and region at the next part of the buffer backwards that matches the current region.
|
;; - `mc/mark-previous-like-this`: Adds a cursor and region at the next part of the buffer backwards that matches the current region.
|
||||||
;; - `mc/mark-previous-word-like-this`: Like `mc/mark-previous-like-this` but only for whole words.
|
;; - `mc/mark-previous-word-like-this`: Like `mc/mark-previous-like-this` but only for whole words.
|
||||||
;; - `mc/mark-previous-symbol-like-this`: Like `mc/mark-previous-like-this` but only for whole symbols.
|
;; - `mc/mark-previous-symbol-like-this`: Like `mc/mark-previous-like-this` but only for whole symbols.
|
||||||
;; - `mc/mark-more-like-this-extended`: Use arrow keys to quickly mark/skip next/previous occurances.
|
;; - `mc/mark-more-like-this-extended`: Use arrow keys to quickly mark/skip next/previous occurrences.
|
||||||
;; - `mc/add-cursor-on-click`: Bind to a mouse event to add cursors by clicking. See tips-section.
|
;; - `mc/add-cursor-on-click`: Bind to a mouse event to add cursors by clicking. See tips-section.
|
||||||
|
|
||||||
;; ### Mark many occurrences
|
;; ### Mark many occurrences
|
||||||
@ -105,7 +105,7 @@
|
|||||||
;;
|
;;
|
||||||
;; - Try pressing `mc/mark-next-like-this-word` or
|
;; - Try pressing `mc/mark-next-like-this-word` or
|
||||||
;; `mc/mark-next-like-this-symbol` with no region selected. It will
|
;; `mc/mark-next-like-this-symbol` with no region selected. It will
|
||||||
;; mark the symbol and add a cursor at the next occurance
|
;; mark the symbol and add a cursor at the next occurrence
|
||||||
;;
|
;;
|
||||||
;; - Try pressing `mc/mark-all-like-this-dwim` on a tagname in html-mode.
|
;; - Try pressing `mc/mark-all-like-this-dwim` on a tagname in html-mode.
|
||||||
;;
|
;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user