]> code.delx.au - dotemacs/commitdiff
More keys for multiple cursors
authorJames Bunton <jbunton@atlassian.com>
Mon, 21 Aug 2017 10:27:32 +0000 (20:27 +1000)
committerJames Bunton <jbunton@atlassian.com>
Mon, 21 Aug 2017 10:27:45 +0000 (20:27 +1000)
README_KEYBINDINGS.md
lisp/my-keys.el

index 4dc4113e0fd84eead5a359972dc6e0546bad3580..c1b590e494951f5ac47a2352e303f0140a1b02fc 100644 (file)
@@ -150,13 +150,20 @@ C-x C-x                                         Exchange point and mark
 C-M-h                                           Highlight expression
 M-@                                             Set mark at end of next word
 C-=                                             Expand region
-C-c l                                           Insert extra cursor on all lines in region
-C-c m                                           Ask to insert extra cursor at locations matching selected region
 M-=                                             Display info about region
 C-.                                             Go to last edit
 C-,                                             Go to last edit reverse
 ```
 
+# Multiple cursors
+```
+C-c m a                                         Insert cursor at all matching points
+C-c m l                                         Insert extra cursor on all lines in region
+C-c m m                                         Ask to insert extra cursor at locations matching selected region
+C-c m p                                         Add cursor at previous text like region
+C-c m n                                         Add cursor at next text like region
+```
+
 # Highlighting
 ```
 M-s h u                                         Unhighlight regexp
index 14d9a76012d09d431523524678a83ef20fc87695..0d55f3aae2c867840beb3d90fc59832026d01974 100644 (file)
 
 ;; Marking
 (global-set-key (kbd "C-=") 'er/expand-region)
-(global-set-key (kbd "C-c l") 'mc/edit-lines)
-(global-set-key (kbd "C-c m") 'mc/mark-more-like-this-extended)
+(global-set-key (kbd "C-c m a") 'mc/mark-all-dwim)
+(global-set-key (kbd "C-c m l") 'mc/edit-lines)
+(global-set-key (kbd "C-c m m") 'mc/mark-more-like-this-extended)
+(global-set-key (kbd "C-c m p") 'mc/mark-previous-like-this)
+(global-set-key (kbd "C-c m n") 'mc/mark-next-like-this)
 (global-set-key (kbd "C-.") 'goto-last-change)
 (global-set-key (kbd "C-,") 'goto-last-change-reverse)