Added mc-version of mark-all-in-region

This commit is contained in:
Magnar Sveen
2012-07-25 19:34:45 +02:00
parent 0d89125f60
commit f42e467bf8
4 changed files with 32 additions and 3 deletions

View File

@@ -85,3 +85,12 @@ Feature: Marking multiple parts of the buffer
And I select "text"
And I press "M-!"
Then I should have 3 cursors
Scenario: Marking in region
Given I turn on delete-selection-mode
When I insert "Here's text, text and text"
And I select "text, text"
And I press "M-# text <return>"
And I type "more"
Then I should have 2 cursors
And I should see "Here's more, more and text"

View File

@@ -23,6 +23,7 @@
(global-set-key (kbd "M->") 'mc/mark-next-like-this)
(global-set-key (kbd "M-<") 'mc/mark-previous-like-this)
(global-set-key (kbd "M-!") 'mc/mark-all-like-this)
(global-set-key (kbd "M-#") 'mc/mark-all-in-region)
(global-set-key (kbd "H-SPC") 'set-rectangular-region-anchor)
(switch-to-buffer
(get-buffer-create "*multiple-cursors*"))