From 699709c1d6491b295783ababf0171dae128efce6 Mon Sep 17 00:00:00 2001 From: Swarsel Date: Sun, 15 Dec 2024 15:03:14 +0100 Subject: [PATCH] feat: add multiple cursors to emacs --- SwarselSystems.org | 12 ++++++++++++ programs/emacs/init.el | 6 ++++++ 2 files changed, 18 insertions(+) diff --git a/SwarselSystems.org b/SwarselSystems.org index a847e78..ddaafa9 100644 --- a/SwarselSystems.org +++ b/SwarselSystems.org @@ -10285,6 +10285,10 @@ I also define some keybinds to some combinations directly. Those are used mostly "" 'kill-ring-save "" 'evil-undo "" 'evil-redo + "C-S-c C-S-c" 'mc/edit-lines + "C->" 'mc/mark-next-like-this + "C-<" 'mc/mark-previous-like-this + "C-c C-<" 'mc/mark-all-like-this ) @@ -13196,3 +13200,11 @@ This sets up the =dashboard=, which is really quite useless. But, it looks cool (add-to-list 'vterm-eval-cmds '("find-file-other-window" me/vterm--find-file-other-window-wrapper)) #+end_src + +*** multiple cursors + +#+begin_src emacs-lisp + +(use-package multiple-cursors) + +#+end_src diff --git a/programs/emacs/init.el b/programs/emacs/init.el index 10a8258..132be0c 100644 --- a/programs/emacs/init.el +++ b/programs/emacs/init.el @@ -416,6 +416,10 @@ create a new one." "" 'kill-ring-save "" 'evil-undo "" 'evil-redo + "C-S-c C-S-c" 'mc/edit-lines + "C->" 'mc/mark-next-like-this + "C-<" 'mc/mark-previous-like-this + "C-c C-<" 'mc/mark-all-like-this ) ;; set Nextcloud directory for journals etc. @@ -2116,3 +2120,5 @@ Prints a reasuring message to proove good faith." ;; Proove me wrong but i think it's safe. (add-to-list 'vterm-eval-cmds '("find-file-other-window" me/vterm--find-file-other-window-wrapper)) + +(use-package multiple-cursors)