-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscamx-anchor.el
161 lines (159 loc) · 4.63 KB
/
scamx-anchor.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
(defun meow-setup ()
(setq meow-cheatsheet-layout meow-cheatsheet-layout-qwerty)
(meow-motion-overwrite-define-key ; minimal overwrite to not interfere original commands
'("g" . meow-motion-exit)
'("n" . next-line)
'("p" . previous-line))
(meow-convert-define-key
'("g" . meow-convert-exit)
'("x" . scamx-X-keymap)
'("?" . scamx-help-keymap)
'("1" . meow-digit-argument)
'("2" . meow-digit-argument)
'("3" . meow-digit-argument)
'("4" . meow-digit-argument)
'("5" . meow-digit-argument)
'("6" . meow-digit-argument)
'("7" . meow-digit-argument)
'("8" . meow-digit-argument)
'("9" . meow-digit-argument)
'("0" . meow-digit-argument)
'("-" . negative-argument)
'("," . mark-defun)
'("(" . backward-list)
'(")" . forward-list)
'("[" . backward-sexp)
'("]" . forward-sexp)
'("{" . backward-up-list)
'("}" . up-list)
'("<" . beginning-of-defun)
'(">" . end-of-defun)
'("n" . scamx-forward-paragraph)
'("p" . scamx-backward-paragraph)
'("f" . forward-word)
'("b" . backward-word)
'("d" . scamx-kill-word)
'("h" . scamx-backward-kill-word)
'("e" . kill-sexp)
'("a" . backward-kill-sexp)
'("k" . scamx-kill-paragraph)
'("=" . mark-sexp)
'("u" . undo)
'("/" . undo-redo)
'("y" . yank)
'("w" . kill-ring-save)
'("l" . kill-whole-line)
'("s" . scamx-suspend)
'("SPC" . set-mark-command))
(meow-visit-define-key
'("g" . meow-visit-exit-all)
'("x" . scamx-X-keymap)
'("?" . scamx-help-keymap)
'("l" . meow-last-buffer)
'("n" . next-buffer)
'("p" . previous-buffer)
'("f" . other-window)
'("b" . previous-window-any-frame)
'("c" . create-buffer)
'("s" . scratch-buffer)
'("d" . scroll-up-command)
'("D" . scroll-other-window)
'("u" . scroll-down-command)
'("U" . scroll-other-window-down)
'("a" . scroll-down-line)
'("e" . scroll-up-line)
'("r" . revert-buffer)
'("0" . balance-windows)
'("m" . minimize-window)
'("M" . maximize-window)
'("+" . scamx-enlarge-window-horizontally)
'("-" . scamx-shrink-window-horizontally)
'("w" . window-swap-states)
'("j" . move-to-window-line-top-bottom)
'("(" . tear-off-window)
'(")" . delete-frame))
;; '("t" . ace-select-window)
(meow-isearch-define-key
'("g" . meow-isearch-exit)
'("n" . isearch-repeat-forward)
'("p" . isearch-repeat-backward)
'("s" . isearch-forward)
'("<backspace>" . isearch-delete-char)
'("w" . isearch-yank-word-or-char)
'("y" . isearch-yank-kill)
'("%" . isearch-query-replace)
'("l" . isearch-yank-line)
'("SPC" . isearch-toggle-lax-whitespace)
'("c" . isearch-toggle-case-fold)
'("o" . isearch-occur)
'("r" . isearch-toggle-regexp)
'("[" . isearch-beginning-of-buffer)
'("]" . isearch-end-of-buffer)
'("." . isearch-forward-thing-at-point)
'("u" . undo)
'("/" . undo-redo))
(meow-normal-define-key
'("x" . scamx-X-keymap)
'("?" . scamx-help-keymap)
'("c" . meow-convert)
'("v" . meow-visit-all)
'("s" . meow-isearch)
'("`" . meow-motion)
'("1" . meow-digit-argument)
'("2" . meow-digit-argument)
'("3" . meow-digit-argument)
'("4" . meow-digit-argument)
'("5" . meow-digit-argument)
'("6" . meow-digit-argument)
'("7" . meow-digit-argument)
'("8" . meow-digit-argument)
'("9" . meow-digit-argument)
'("0" . meow-digit-argument)
'("!" . shell-command)
'("$" . ispell-word)
'("%" . query-replace)
'("-" . negative-argument)
'("a" . move-beginning-of-line)
'("e" . move-end-of-line)
'("d" . scamx-delete-char)
'("h" . scamx-backward-delete-char)
'("g" . my/meow-escape)
'("b" . backward-char)
'("i" . meow-insert)
'("o" . meow-open-below)
'("O" . meow-open-above)
'("n" . next-line)
'("p" . previous-line)
'("f" . forward-char)
'("j" . newline)
'("m" . back-to-indentation)
'("w" . kill-ring-save)
'("y" . yank)
'("q" . meow-quit)
'("Q" . goto-line)
'("k" . scamx-kill-line)
'("t" . meow-till)
'("u" . undo)
'("/" . undo-redo)
'("z" . zap-up-to-char)
'("Z" . zap-to-char)
'("l" . recenter-top-bottom)
'("\\" . delete-horizontal-space)
'("=" . mark-word)
'("SPC" . set-mark-command)
;; multiple cursors
'("[" . mc/mark-previous-like-this)
'("]" . mc/mark-next-like-this)
'("<" . mc/skip-to-previous-like-this)
'(">" . mc/skip-to-next-like-this)
'(";" . mc/mark-all-dwim)
'(":" . mc/mark-all-like-this)
'("'" . mc/edit-lines)
'("@" . mc/mark-all-words-like-this)
'("#" . mc/mark-all-in-region)))
(use-package meow
:config
(meow-setup)
(meow-global-mode 1)
(setq meow-expand-hint-remove-delay 0))
(provide 'scamx-anchor)