mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
28 lines
874 B
EmacsLisp
28 lines
874 B
EmacsLisp
;;; siren-multiple-cursors.el --- jimeh's Emacs Siren: multiple-cursors configuration.
|
|
|
|
;;; Commentary:
|
|
|
|
;; Basic configuration for multiple-cursors.
|
|
|
|
;;; Code:
|
|
|
|
(siren-require-packages '(multiple-cursors))
|
|
|
|
(require 'multiple-cursors)
|
|
(setq mc/edit-lines-empty-lines 'ignore)
|
|
|
|
(global-set-key (kbd "C-x C-@") 'mc/edit-lines) ;; Terminal
|
|
(global-set-key (kbd "C-x C-SPC") 'mc/edit-lines) ;; GUI
|
|
|
|
(global-set-key (kbd "M-/") 'mc/mark-next-like-this)
|
|
(global-set-key (kbd "M-m") 'mc/mark-previous-like-this)
|
|
(global-set-key (kbd "C-c M-/") 'mc/mark-all-like-this)
|
|
(global-set-key (kbd "M-RET") 'set-rectangular-region-anchor)
|
|
|
|
;; Make alt-<click> add additional cursors
|
|
(global-unset-key (kbd "M-<down-mouse-1>")) ;; must unset key first
|
|
(global-set-key (kbd "M-<mouse-1>") 'mc/add-cursor-on-click)
|
|
|
|
(provide 'siren-multiple-cursors)
|
|
;;; siren-multiple-cursors.el ends here
|