diff --git a/custom/setup-cursors.el b/custom/setup-cursors.el new file mode 100644 index 0000000..d5a1aca --- /dev/null +++ b/custom/setup-cursors.el @@ -0,0 +1,10 @@ +(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) diff --git a/init.el b/init.el index 841dab6..0af2028 100644 --- a/init.el +++ b/init.el @@ -43,6 +43,7 @@ helm-swoop helm-company dashboard + multiple-cursors )) ;; function to install new packages @@ -91,6 +92,9 @@ ;; setup gdb (require 'setup-gdb) +;; setup multiple cursors +(require 'setup-cursors) + ;; start emacs server (server-start)