Add multiple cursors section
This commit is contained in:
parent
6325892938
commit
98b1dfc7ca
2 changed files with 16 additions and 10 deletions
16
config.org
16
config.org
|
|
@ -551,6 +551,22 @@ To be fair, I didn't test this in a while...
|
||||||
)
|
)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
* Mutliple cursors
|
||||||
|
|
||||||
|
https://github.com/magnars/multiple-cursors.el
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package multiple-cursors
|
||||||
|
:ensure t
|
||||||
|
:bind
|
||||||
|
("C-x r a" . mc/edit-lines)
|
||||||
|
("C-x r e" . mc/edit-ends-of-lines)
|
||||||
|
("C->" . mc/mark-next-like-this)
|
||||||
|
("C-<" . mc/mark-previous-like-this)
|
||||||
|
("C-c C->" . mc/mark-all-like-this)
|
||||||
|
)
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
* Old stuff, maybe usefull for lookup later
|
* Old stuff, maybe usefull for lookup later
|
||||||
|
|
||||||
** Diff mode stuff
|
** Diff mode stuff
|
||||||
|
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
(require 'multiple-cursors)
|
|
||||||
|
|
||||||
(global-set-key (kbd "C-x r a") 'mc/edit-lines)
|
|
||||||
(global-set-key (kbd "C-x r e") 'mc/edit-ends-of-lines)
|
|
||||||
|
|
||||||
(global-set-key (kbd "C->") 'mc/mark-next-like-this)
|
|
||||||
(global-set-key (kbd "C-<") 'mc/mark-previous-like-this)
|
|
||||||
(global-set-key (kbd "C-c C->") 'mc/mark-all-like-this)
|
|
||||||
|
|
||||||
(provide 'setup-cursors)
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue