3 ms·
One pretty neat Emacs trick is to bind mouse click events to toggle multiple cursors. Here's for example how to use Ctrl+Mouse_Click with evil-mc (vanilla Emacs
by iLemming 3y ago
One pretty neat Emacs trick is to bind mouse click events to toggle multiple cursors. Here's for example how to use Ctrl+Mouse_Click with evil-mc (vanilla Emacs equivalent is mc/toggle-cursor-on-click)
(with-eval-after-load 'evil-mc
(global-set-key (kbd "C-<down-mouse-1>") 'evil-mc-toggle-cursor-on-click))
You would just click, click, click while holding Ctrl and then you can edit a bunch of things simultaneously.
- BaculumMeumEst 3y agodo you find that you use that for cases where you wouldn’t use mc/mark-next-like-this or mc/edit-lines? i think i will try it out regardless, thanks
- deafpolygon 3y agoYou can do this in VS Code, but it's Alt+Click. It's a default binding.