-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathportacle-cursors.el
61 lines (56 loc) · 1.95 KB
/
portacle-cursors.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
(provide 'portacle-cursors)
(ensure-installed 'multiple-cursors 'expand-region)
(require 'multiple-cursors)
(require 'expand-region)
;; Workaround for https://github.com/magnars/expand-region.el/issues/220
(setq shift-select-mode nil)
(define-portacle-key "C-q" 'er/expand-region)
(define-portacle-key "C-S-c C-S-c" 'mc/edit-lines)
(define-portacle-key "C-M-<next>" 'mc/mark-next-like-this)
(define-portacle-key "C-M-<prior>" 'mc/mark-previous-like-this)
(define-portacle-key "C-M-m <down>" 'mc/mark-next-like-this)
(define-portacle-key "C-M-m <up>" 'mc/mark-previous-like-this)
(define-portacle-key "C-M-m <right>" 'mc/unmark-next-like-this)
(define-portacle-key "C-M-m <left>" 'mc/unmark-previous-like-this)
(define-portacle-key "C-M-m a" 'mc/mark-all-like-this)
;; Populate default MC lists
(unless (file-exists-p mc/list-file)
(setq mc/cmds-to-run-for-all
'(backward-sexp
downcase-region
electric-newline-and-maybe-indent
end-of-buffer
forward-sexp
indent-for-tab-command
kill-region
paredit-backslash
paredit-backward
paredit-close-round
paredit-close-square
paredit-comment-dwim
paredit-convolute-sexp
paredit-doublequote
paredit-forward
paredit-forward-barf-sexp
paredit-forward-delete
paredit-forward-down
paredit-forward-slurp-sexp
paredit-kill
paredit-newline
paredit-open-round
paredit-open-square
paredit-reindent-cl-defun
paredit-semicolon
paredit-splice-sexp-killing-backward
paredit-backslash
reindent-then-newline-and-indent
scroll-other-window
slime-autodoc-space
slime-space
switch-to-buffer
upcase-region
yank-rectangle))
(setq mc/cmds-to-run-once
'(down-list
ido-list-directory
mouse-drag-mode-line)))