-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathemacs.talon
184 lines (129 loc) · 2.22 KB
/
emacs.talon
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
app.name: Emacs
-
# Talon things
^return$:
key("enter")
# Emacs things
emacs escape:
key(ctrl-g)
m down:
key(ctrl-n)
m up:
key(ctrl-p)
meta up:
key(alt-p)
meta down:
key(alt-n)
find file:
key(ctrl-x ctrl-f)
meta command:
key(alt-x)
# commonly used to 'finish' an action
emacs go:
key(ctrl-c ctrl-c)
# This is my most common key sequence. Kill active commands, normal mode, save.
reset:
key(ctrl-g)
sleep(200ms)
key(ctrl-[)
sleep(200ms)
key(ctrl-x ctrl-s)
# Package added
jump <user.letter> <user.letter>:
key(cmd-f)
sleep(200ms)
key(letter)
key(letter_2)
visual replace:
key(ctrl-c r)
# Buffer
other buffer:
key(ctrl-x b)
last buffer:
key(ctrl-x b)
key(enter)
list buffers:
key(ctrl-x ctrl-b)
(kill | close) buffer:
key(ctrl-x k enter)
# Windows
other window:
key(cmd-m)
move window:
key(cmd-m m)
close window:
key(ctrl-x 0)
split horizontal:
key(ctrl-x 2)
split vertical:
key(ctrl-x 3)
# file operations
emacs save:
key(ctrl-x ctrl-s)
# Project Wide
grep:
key(ctrl-c k)
projectile file:
key(cmd-p f)
projectile project:
key(cmd-p p)
projectile replace string:
key(cmd-cmd-p r)
projectile project root:
key(cmd-p shift-d)
# Magit
maggot:
key(cmd-g)
maggot file log:
key(ctrl-c alt-g)
sleep(200ms)
key(l)
maggot stage file:
key(ctrl-c alt-g)
sleep(200ms)
key(s)
maggot unstage file:
key(ctrl-c alt-g)
sleep(200ms)
key(u)
maggot diff (buffer | file):
key(ctrl-c alt-g)
sleep(200ms)
key(d)
maggot buffer status:
key(ctrl-c alt-g)
sleep(200ms)
key(g)
maggot blame:
key(ctrl-c alt-g)
sleep(200ms)
key(shift-b)
maggot diff:
key(ctrl-c alt-g)
sleep(200ms)
key(shift-d)
maggot commit:
key(ctrl-c alt-g)
sleep(200ms)
key(c)
# Org-mode
org expand all:
key(ctrl-u ctrl-u ctrl-u tab)
org toggle links:
key(alt-x)
insert("org-toggle-link-display")
key(enter)
# Company Mode
complete:
key(ctrl-f)
# Cider
cider jack in:
key(ctrl-c)
key(alt-j)
# Lisp
eval top:
key(ctrl-alt-x)
eval last:
key(ctrl-x ctrl-e)
eval top print:
key(ctrl-shift-alt-x)