summaryrefslogtreecommitdiffstats
path: root/2026/info/anju-after.md
blob: c9a2637a5d3d7ffd7d382164d5409f28e6a089c1 (plain) (blame)
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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
<!-- Automatically generated by emacsconf-publish-after-page -->


<div class="transcript transcript-mainVideo"><a name="anju-mainVideo-transcript"></a><h1>Transcript</h1>

<div class="transcript-heading">[[!template new="1" text="""Introduction""" start="00:00:00.405" video="mainVideo-anju" id="subtitle"]]</div><div>[[!template new="1" text="""Hello, my name is Charles Choi and welcome to my talk,""" start="00:00:00.405" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Revisiting Emacs Mouse Interactions with Anju\.""" start="00:00:03.607" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Anju is a project to provide a better point and""" start="00:00:08.010" video="mainVideo-anju" id="subtitle"]]
[[!template text="""click experience for Emacs\.""" start="00:00:10.673" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Motivating Anju is the desire to align Emacs""" start="00:00:13.795" video="mainVideo-anju" id="subtitle"]]
[[!template text="""mouse interactions with what I think most mouse""" start="00:00:16.998" video="mainVideo-anju" id="subtitle"]]
[[!template text="""users would expect in 2026\.""" start="00:00:19.419" video="mainVideo-anju" id="subtitle"]]
[[!template text="""This talk will be opinionated and hopefully not""" start="00:00:22.882" video="mainVideo-anju" id="subtitle"]]
[[!template text="""too triggering\.""" start="00:00:25.964" video="mainVideo-anju" id="subtitle"]]
[[!template text="""For reference, Anju is a Korean word whose""" start="00:00:28.215" video="mainVideo-anju" id="subtitle"]]
[[!template text="""translation is food eaten alongside alcohol\.""" start="00:00:30.737" video="mainVideo-anju" id="subtitle"]]

</div><div class="transcript-heading">[[!template new="1" text="""Why Anju?""" start="00:00:35.221" video="mainVideo-anju" id="subtitle"]]</div><div>[[!template new="1" text="""So why make Anju?""" start="00:00:35.221" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Let me start with a strong assertion\.""" start="00:00:37.363" video="mainVideo-anju" id="subtitle"]]
[[!template text="""It's really weird to use a mouse with Emacs out""" start="00:00:40.365" video="mainVideo-anju" id="subtitle"]]
[[!template text="""of the box\.""" start="00:00:42.927" video="mainVideo-anju" id="subtitle"]]
[[!template text="""This is why I think that\.""" start="00:00:44.549" video="mainVideo-anju" id="subtitle"]]

</div><div class="transcript-heading">[[!template new="1" text="""Over-committed to the middle mouse button""" start="00:00:47.951" video="mainVideo-anju" id="subtitle"]]</div><div>[[!template new="1" text="""The first one is a fixation on maintaining the""" start="00:00:47.951" video="mainVideo-anju" id="subtitle"]]
[[!template text="""middle mouse button event\.""" start="00:00:50.554" video="mainVideo-anju" id="subtitle"]]
[[!template text="""This affects things like the mode line, scroll""" start="00:00:52.475" video="mainVideo-anju" id="subtitle"]]
[[!template text="""bars, dividers, and pasting text\.""" start="00:00:54.797" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Arguably this banding was made at a time when""" start="00:00:57.911" video="mainVideo-anju" id="subtitle"]]
[[!template text="""most mice looked like the Sun optical mice that""" start="00:01:00.432" video="mainVideo-anju" id="subtitle"]]
[[!template text="""you see here from the 90s\.""" start="00:01:03.572" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Times change though\.""" start="00:01:05.613" video="mainVideo-anju" id="subtitle"]]
[[!template text="""For many decades now this is the baseline design""" start="00:01:07.834" video="mainVideo-anju" id="subtitle"]]
[[!template text="""of a mouse which is emulated with trackpads on laptops\.""" start="00:01:10.554" video="mainVideo-anju" id="subtitle"]]
[[!template text="""The middle button has been replaced by a scroll""" start="00:01:16.036" video="mainVideo-anju" id="subtitle"]]
[[!template text="""wheel which does double duty as a button\.""" start="00:01:18.636" video="mainVideo-anju" id="subtitle"]]
[[!template text="""That said, pressing this scroll wheel button is""" start="00:01:22.404" video="mainVideo-anju" id="subtitle"]]
[[!template text="""an unpleasant experience compared to the left and""" start="00:01:24.666" video="mainVideo-anju" id="subtitle"]]
[[!template text="""right buttons next to it\.""" start="00:01:27.487" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Given a standard right-handed configuration, the""" start="00:01:31.150" video="mainVideo-anju" id="subtitle"]]
[[!template text="""left button is used for primary selection and the""" start="00:01:33.752" video="mainVideo-anju" id="subtitle"]]
[[!template text="""right button is commonly used to raise a context menu\.""" start="00:01:38.214" video="mainVideo-anju" id="subtitle"]]

</div><div class="transcript-heading">[[!template new="1" text="""Menus feel more like inventories""" start="00:01:45.478" video="mainVideo-anju" id="subtitle"]]</div><div>[[!template new="1" text="""A lot of menus in Emacs feel ad-hoc design, which""" start="00:01:45.478" video="mainVideo-anju" id="subtitle"]]
[[!template text="""results in a chaotic experience for users\.""" start="00:01:48.600" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Often menus feel more like inventories than an""" start="00:01:52.443" video="mainVideo-anju" id="subtitle"]]
[[!template text="""information architecture\.""" start="00:01:55.065" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Consider, for example, Dired, which has no less""" start="00:01:57.267" video="mainVideo-anju" id="subtitle"]]
[[!template text="""than 5 separate top-level menus, whose design is""" start="00:01:59.949" video="mainVideo-anju" id="subtitle"]]
[[!template text="""best described as mid\.""" start="00:02:03.211" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Picking apart this design is another talk, but""" start="00:02:05.913" video="mainVideo-anju" id="subtitle"]]
[[!template text="""I'll ask, why does bytecompile in the operate""" start="00:02:09.276" video="mainVideo-anju" id="subtitle"]]
[[!template text="""menu show up for files other than Elisp?""" start="00:02:12.138" video="mainVideo-anju" id="subtitle"]]

</div><div class="transcript-heading">[[!template new="1" text="""Surprising single vs\. double-click behavior""" start="00:02:18.233" video="mainVideo-anju" id="subtitle"]]</div><div>[[!template new="1" text="""Another irritant is how Emacs handles single vs\.""" start="00:02:18.233" video="mainVideo-anju" id="subtitle"]]
[[!template text="""double click behavior\.""" start="00:02:21.716" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Typical file managers like Microsoft Explorer and""" start="00:02:24.117" video="mainVideo-anju" id="subtitle"]]
[[!template text="""macOS Finder treat single click as a selection action\.""" start="00:02:29.341" video="mainVideo-anju" id="subtitle"]]
[[!template text="""However, Dired and Ibuffer both treat single""" start="00:02:34.325" video="mainVideo-anju" id="subtitle"]]
[[!template text="""click as an open action like a hypertext document\.""" start="00:02:37.487" video="mainVideo-anju" id="subtitle"]]
[[!template text="""This makes for a very twitchy and anxious experience\.""" start="00:02:41.310" video="mainVideo-anju" id="subtitle"]]

</div><div class="transcript-heading">[[!template new="1" text="""Erratic context menu design""" start="00:02:48.602" video="mainVideo-anju" id="subtitle"]]</div><div>[[!template new="1" text="""The adoption of context menu mode introduced in""" start="00:02:48.602" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Emacs 28 has been uneven at best\.""" start="00:02:51.663" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Many modes implement their context menu by just""" start="00:02:55.744" video="mainVideo-anju" id="subtitle"]]
[[!template text="""dumping their mode map into its contents\.""" start="00:02:58.465" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Such an approach fails to take advantage of""" start="00:03:01.926" video="mainVideo-anju" id="subtitle"]]
[[!template text="""building a genuinely context-sensitive interface\.""" start="00:03:04.646" video="mainVideo-anju" id="subtitle"]]

</div><div class="transcript-heading">[[!template new="1" text="""What does Anju do?""" start="00:03:14.489" video="mainVideo-anju" id="subtitle"]]</div><div>[[!template new="1" text="""Anju makes opinionated changes to mouse behavior in Emacs\.""" start="00:03:14.489" video="mainVideo-anju" id="subtitle"]]
[[!template text="""First is to enhance direct manipulation, as the""" start="00:03:19.078" video="mainVideo-anju" id="subtitle"]]
[[!template text="""mouse is intrinsically a pointing device\.""" start="00:03:22.360" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Second is to revisit how content is organized in""" start="00:03:26.263" video="mainVideo-anju" id="subtitle"]]
[[!template text="""menus for both the menu bar and context menus\.""" start="00:03:29.585" video="mainVideo-anju" id="subtitle"]]
[[!template text="""And finally is to stop using the middle button\.""" start="00:03:34.789" video="mainVideo-anju" id="subtitle"]]
[[!template text="""My opinions on application user interfaces are""" start="00:03:41.238" video="mainVideo-anju" id="subtitle"]]
[[!template text="""strongly informed by macOS and Windows\.""" start="00:03:43.819" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Guiding their design is the HIG and CUA, respectively\.""" start="00:03:47.241" video="mainVideo-anju" id="subtitle"]]
[[!template text="""In building Anju, I've tried to make design decisions""" start="00:03:53.424" video="mainVideo-anju" id="subtitle"]]
[[!template text="""that are conventional to those platforms\.""" start="00:03:56.945" video="mainVideo-anju" id="subtitle"]]

</div><div class="transcript-heading">[[!template new="1" text="""Who is Anju for?""" start="00:04:02.068" video="mainVideo-anju" id="subtitle"]]</div><div>[[!template new="1" text="""Who's this for?""" start="00:04:02.068" video="mainVideo-anju" id="subtitle"]]
[[!template text="""While this meme is shown in jest, there is truth""" start="00:04:04.603" video="mainVideo-anju" id="subtitle"]]
[[!template text="""that pointing tasks are more efficiently done""" start="00:04:08.844" video="mainVideo-anju" id="subtitle"]]
[[!template text="""with a mouse\.""" start="00:04:11.785" video="mainVideo-anju" id="subtitle"]]
[[!template text="""More seriously though, Anju is for everybody\.""" start="00:04:15.026" video="mainVideo-anju" id="subtitle"]]
[[!template text="""I contend that Emacs is capable of good mouse""" start="00:04:18.408" video="mainVideo-anju" id="subtitle"]]
[[!template text="""support and those who insist on using a keyboard""" start="00:04:21.148" video="mainVideo-anju" id="subtitle"]]
[[!template text="""alone are missing out\.""" start="00:04:24.830" video="mainVideo-anju" id="subtitle"]]
[[!template text="""With Anju, Emacs users can have both a great""" start="00:04:26.710" video="mainVideo-anju" id="subtitle"]]
[[!template text="""keyboard and mouse experience\.""" start="00:04:29.791" video="mainVideo-anju" id="subtitle"]]

</div><div class="transcript-heading">[[!template new="1" text="""Design principles: Making a calmer mouse experience""" start="00:04:36.091" video="mainVideo-anju" id="subtitle"]]</div><div>[[!template new="1" text="""Aspirationally, Anju tries to make using the mouse""" start="00:04:36.091" video="mainVideo-anju" id="subtitle"]]
[[!template text="""a calmer experience\.""" start="00:04:39.874" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Let's detail how this is achieved\.""" start="00:04:42.736" video="mainVideo-anju" id="subtitle"]]
[[!template text="""First is to recognize that the mouse is a""" start="00:04:47.260" video="mainVideo-anju" id="subtitle"]]
[[!template text="""pointing device\.""" start="00:04:49.542" video="mainVideo-anju" id="subtitle"]]
[[!template text="""With it, you can directly act on what you're""" start="00:04:50.943" video="mainVideo-anju" id="subtitle"]]
[[!template text="""pointing at\.""" start="00:04:52.964" video="mainVideo-anju" id="subtitle"]]

</div><div class="transcript-heading">[[!template new="1" text="""Menus should be organized""" start="00:04:55.606" video="mainVideo-anju" id="subtitle"]]</div><div>[[!template new="1" text="""Second is menu organization\.""" start="00:04:55.606" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Menus surface actionable commands to the user\.""" start="00:04:58.627" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Ideally, there is an information architecture""" start="00:05:01.830" video="mainVideo-anju" id="subtitle"]]
[[!template text="""that gives structure and relevance to the""" start="00:05:04.071" video="mainVideo-anju" id="subtitle"]]
[[!template text="""commands presented to the user\.""" start="00:05:06.053" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Two competing objectives in organizing commands""" start="00:05:09.196" video="mainVideo-anju" id="subtitle"]]
[[!template text="""is discoverability versus concision\.""" start="00:05:12.498" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Discoverability wants to maximize choice, whereas""" start="00:05:15.741" video="mainVideo-anju" id="subtitle"]]
[[!template text="""concision seeks to minimize it\.""" start="00:05:18.944" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Anju takes the opinion that the menu bar should""" start="00:05:24.924" video="mainVideo-anju" id="subtitle"]]
[[!template text="""be optimized for discoverability, and that""" start="00:05:27.265" video="mainVideo-anju" id="subtitle"]]
[[!template text="""context menus are all about concision\.""" start="00:05:32.447" video="mainVideo-anju" id="subtitle"]]

</div><div class="transcript-heading">[[!template new="1" text="""Concision is achieved with context""" start="00:05:37.550" video="mainVideo-anju" id="subtitle"]]</div><div>[[!template new="1" text="""To get concision, you need to take into account context\.""" start="00:05:37.550" video="mainVideo-anju" id="subtitle"]]
[[!template text="""What is context?""" start="00:05:41.732" video="mainVideo-anju" id="subtitle"]]
[[!template text="""It is the set of circumstances that give meaning""" start="00:05:43.452" video="mainVideo-anju" id="subtitle"]]
[[!template text="""to an event\.""" start="00:05:46.334" video="mainVideo-anju" id="subtitle"]]
[[!template text="""In general, for a context menu, the event is the""" start="00:05:48.543" video="mainVideo-anju" id="subtitle"]]
[[!template text="""place on the screen where the context menu is raised\.""" start="00:05:51.986" video="mainVideo-anju" id="subtitle"]]

</div><div class="transcript-heading">[[!template new="1" text="""Example context criteria""" start="00:05:58.030" video="mainVideo-anju" id="subtitle"]]</div><div>[[!template new="1" text="""Different criteria can determine when a command""" start="00:05:58.030" video="mainVideo-anju" id="subtitle"]]
[[!template text="""is shown in a context menu\.""" start="00:06:00.712" video="mainVideo-anju" id="subtitle"]]
[[!template text="""These include the position of the mouse, whether""" start="00:06:03.794" video="mainVideo-anju" id="subtitle"]]
[[!template text="""text is selected, what mode is active\.""" start="00:06:06.516" video="mainVideo-anju" id="subtitle"]]
[[!template text="""A whole host of different criteria can be""" start="00:06:09.539" video="mainVideo-anju" id="subtitle"]]
[[!template text="""generated and this is just only a subset here\.""" start="00:06:12.301" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Combinatorial logic on this criteria determines""" start="00:06:16.144" video="mainVideo-anju" id="subtitle"]]
[[!template text="""if and how a command is displayed in the menu\.""" start="00:06:19.046" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Other menu design concerns include nesting menus""" start="00:06:24.588" video="mainVideo-anju" id="subtitle"]]
[[!template text="""so they don't go no more than two deep, surfacing""" start="00:06:29.511" video="mainVideo-anju" id="subtitle"]]
[[!template text="""relevant commands as shelf space is limited, and""" start="00:06:33.113" video="mainVideo-anju" id="subtitle"]]
[[!template text="""minimizing switching between the mouse and""" start="00:06:37.075" video="mainVideo-anju" id="subtitle"]]
[[!template text="""keyboard to keep your hands in one place\.""" start="00:06:39.496" video="mainVideo-anju" id="subtitle"]]

</div><div class="transcript-heading">[[!template new="1" text="""Anju demo""" start="00:06:45.567" video="mainVideo-anju" id="subtitle"]]</div><div>[[!template new="1" text="""So, let's show Anju in action\.""" start="00:06:45.567" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Note that in the videos, a black circle overlay""" start="00:06:48.409" video="mainVideo-anju" id="subtitle"]]
[[!template text="""is a left mouse button press and a green circle""" start="00:06:51.150" video="mainVideo-anju" id="subtitle"]]
[[!template text="""is for the right\.""" start="00:06:53.852" video="mainVideo-anju" id="subtitle"]]
[[!template text="""By default, clicking on the right mouse button""" start="00:06:55.513" video="mainVideo-anju" id="subtitle"]]
[[!template text="""will raise a context menu\.""" start="00:06:57.794" video="mainVideo-anju" id="subtitle"]]

</div><div class="transcript-heading">[[!template new="1" text="""Direct manipulation: Window splitting""" start="00:07:03.558" video="mainVideo-anju" id="subtitle"]]</div><div>[[!template new="1" text="""Anju uses direct manipulation to support managing windows\.""" start="00:07:03.558" video="mainVideo-anju" id="subtitle"]]
[[!template text="""From a context menu, a submenu for window""" start="00:07:10.586" video="mainVideo-anju" id="subtitle"]]
[[!template text="""management is provided\.""" start="00:07:14.428" video="mainVideo-anju" id="subtitle"]]
[[!template text="""As the demo illustrates, this submenu provides""" start="00:07:16.309" video="mainVideo-anju" id="subtitle"]]
[[!template text="""commands to split the current window to the side""" start="00:07:19.431" video="mainVideo-anju" id="subtitle"]]
[[!template text="""and below\.""" start="00:07:22.973" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Note how the new window boundary corresponds to""" start="00:07:24.774" video="mainVideo-anju" id="subtitle"]]
[[!template text="""where the mouse position is\.""" start="00:07:27.856" video="mainVideo-anju" id="subtitle"]]
[[!template text="""This submenu also supports deletion of the""" start="00:07:31.498" video="mainVideo-anju" id="subtitle"]]
[[!template text="""current window\.""" start="00:07:33.999" video="mainVideo-anju" id="subtitle"]]

</div><div class="transcript-heading">[[!template new="1" text="""Window swapping""" start="00:07:40.508" video="mainVideo-anju" id="subtitle"]]</div><div>[[!template new="1" text="""When multiple windows are displayed, the window""" start="00:07:40.508" video="mainVideo-anju" id="subtitle"]]
[[!template text="""management menu provides a submenu for swapping windows\.""" start="00:07:43.029" video="mainVideo-anju" id="subtitle"]]
[[!template text="""This menu is designed to only show possible swap""" start="00:07:48.130" video="mainVideo-anju" id="subtitle"]]
[[!template text="""directions, as it is context-sensitive\.""" start="00:07:51.331" video="mainVideo-anju" id="subtitle"]]

</div><div class="transcript-heading">[[!template new="1" text="""Mode line""" start="00:07:58.233" video="mainVideo-anju" id="subtitle"]]</div><div>[[!template new="1" text="""Support for direct manipulation is already in the""" start="00:07:58.233" video="mainVideo-anju" id="subtitle"]]
[[!template text="""mode line, which can resize a window both""" start="00:08:01.314" video="mainVideo-anju" id="subtitle"]]
[[!template text="""vertically and horizontally\.""" start="00:08:03.995" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Anju modifies the mode line to let the user""" start="00:08:06.705" video="mainVideo-anju" id="subtitle"]]
[[!template text="""maximize the window from it""" start="00:08:09.907" video="mainVideo-anju" id="subtitle"]]
[[!template text="""with a left double-click event\.""" start="00:08:12.368" video="mainVideo-anju" id="subtitle"]]
[[!template text="""The double-click must occur on a blank space on""" start="00:08:14.829" video="mainVideo-anju" id="subtitle"]]
[[!template text="""the mode line as other text on the mode line can""" start="00:08:17.290" video="mainVideo-anju" id="subtitle"]]
[[!template text="""accept mouse events\.""" start="00:08:20.692" video="mainVideo-anju" id="subtitle"]]
[[!template text="""After maximizing a window, the user can return""" start="00:08:23.323" video="mainVideo-anju" id="subtitle"]]
[[!template text="""back to the earlier window configuration by""" start="00:08:26.466" video="mainVideo-anju" id="subtitle"]]
[[!template text="""repeating the same left double-click event again\.""" start="00:08:29.169" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Another change to the mode line is binding the""" start="00:08:33.614" video="mainVideo-anju" id="subtitle"]]
[[!template text="""window management menu to the right mouse button\.""" start="00:08:35.917" video="mainVideo-anju" id="subtitle"]]

</div><div class="transcript-heading">[[!template new="1" text="""Menu bar""" start="00:08:46.300" video="mainVideo-anju" id="subtitle"]]</div><div>[[!template new="1" text="""Anju changes the menu bar to enhance""" start="00:08:46.300" video="mainVideo-anju" id="subtitle"]]
[[!template text="""discoverability\.""" start="00:08:48.721" video="mainVideo-anju" id="subtitle"]]
[[!template text="""In particular, Anju tries to surface""" start="00:08:50.262" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Emacs-specific features that distinguish it""" start="00:08:53.563" video="mainVideo-anju" id="subtitle"]]
[[!template text="""from less capable editors\.""" start="00:08:55.944" video="mainVideo-anju" id="subtitle"]]
[[!template text="""I strongly feel that usage of these features is""" start="00:08:59.065" video="mainVideo-anju" id="subtitle"]]
[[!template text="""why you would want to use Emacs in the first place\.""" start="00:09:01.866" video="mainVideo-anju" id="subtitle"]]
[[!template text="""The catch is that many of these features are""" start="00:09:05.067" video="mainVideo-anju" id="subtitle"]]
[[!template text="""undiscoverable\.""" start="00:09:07.208" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Anju tries to remedy this by making them""" start="00:09:08.888" video="mainVideo-anju" id="subtitle"]]
[[!template text="""prominent in the menu bar\.""" start="00:09:11.569" video="mainVideo-anju" id="subtitle"]]

</div><div class="transcript-heading">[[!template new="1" text="""Edit menu""" start="00:09:16.823" video="mainVideo-anju" id="subtitle"]]</div><div>[[!template new="1" text="""Anju has many special case commands for editing""" start="00:09:16.823" video="mainVideo-anju" id="subtitle"]]
[[!template text="""text of different sizes\.""" start="00:09:20.226" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Such commands work on text extents ranging from""" start="00:09:22.308" video="mainVideo-anju" id="subtitle"]]
[[!template text="""words to sentences to paragraphs\.""" start="00:09:25.210" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Anju adds such commands to the edit menu\.""" start="00:09:28.753" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Commands to duplicate, align, and delete text are""" start="00:09:31.975" video="mainVideo-anju" id="subtitle"]]
[[!template text="""also added\.""" start="00:09:35.398" video="mainVideo-anju" id="subtitle"]]
[[!template text="""This demo here offers a glimpse into the editing""" start="00:09:36.980" video="mainVideo-anju" id="subtitle"]]
[[!template text="""powers of Emacs\.""" start="00:09:39.882" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Duplicating text can be done in one step with a""" start="00:09:42.495" video="mainVideo-anju" id="subtitle"]]
[[!template text="""duplicate command\.""" start="00:09:45.397" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Same for text alignment to a regular expression\.""" start="00:09:47.259" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Rectangle commands are a powerful editing feature of Emacs\.""" start="00:09:51.502" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Using C-M-mouse-1, you can select a rectangle\.""" start="00:09:55.686" video="mainVideo-anju" id="subtitle"]]
[[!template text="""The rectangle submenu will then be enabled in the edit menu\.""" start="00:10:00.770" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Multiple spaces can be reduced to one with the""" start="00:10:05.453" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Just One Space command\.""" start="00:10:09.577" video="mainVideo-anju" id="subtitle"]]
[[!template text="""And then here we can see flush-lines at work,""" start="00:10:16.855" video="mainVideo-anju" id="subtitle"]]
[[!template text="""flushing all lines that contain an instance of""" start="00:10:20.700" video="mainVideo-anju" id="subtitle"]]
[[!template text="""the word pair\.""" start="00:10:23.703" video="mainVideo-anju" id="subtitle"]]

</div><div class="transcript-heading">[[!template new="1" text="""Registers menu""" start="00:10:30.338" video="mainVideo-anju" id="subtitle"]]</div><div>[[!template new="1" text="""Registers are an Emacs feature to store different""" start="00:10:30.338" video="mainVideo-anju" id="subtitle"]]
[[!template text="""kinds of runtime information such as text""" start="00:10:33.619" video="mainVideo-anju" id="subtitle"]]
[[!template text="""clippings, position, window configuration, and""" start="00:10:35.919" video="mainVideo-anju" id="subtitle"]]
[[!template text="""keyboard macros\.""" start="00:10:39.380" video="mainVideo-anju" id="subtitle"]]
[[!template text="""In this demo, we'll store two different text""" start="00:10:41.060" video="mainVideo-anju" id="subtitle"]]
[[!template text="""selections into two different registers and then""" start="00:10:44.261" video="mainVideo-anju" id="subtitle"]]
[[!template text="""insert each stored register\.""" start="00:10:47.422" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Here we'll insert register 1\.""" start="00:10:58.348" video="mainVideo-anju" id="subtitle"]]
[[!template text="""And in this demo, we'll insert register 2\.""" start="00:11:03.913" video="mainVideo-anju" id="subtitle"]]
[[!template text="""That concludes that demo\.""" start="00:11:10.679" video="mainVideo-anju" id="subtitle"]]
[[!template text="""I'm of the opinion that registers are so""" start="00:11:12.460" video="mainVideo-anju" id="subtitle"]]
[[!template text="""important that I've made them a top-level menu in""" start="00:11:14.542" video="mainVideo-anju" id="subtitle"]]
[[!template text="""the menu bar\.""" start="00:11:17.504" video="mainVideo-anju" id="subtitle"]]

</div><div class="transcript-heading">[[!template new="1" text="""Bookmarks""" start="00:11:22.168" video="mainVideo-anju" id="subtitle"]]</div><div>[[!template new="1" text="""Another feature that I think is important enough""" start="00:11:22.168" video="mainVideo-anju" id="subtitle"]]
[[!template text="""to put in the menu bar is bookmarks,""" start="00:11:24.869" video="mainVideo-anju" id="subtitle"]]
[[!template text="""which lets you keep track of different documents""" start="00:11:26.530" video="mainVideo-anju" id="subtitle"]]
[[!template text="""for later recall\.""" start="00:11:29.812" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Once you start using them, you'll quickly learn""" start="00:11:31.393" video="mainVideo-anju" id="subtitle"]]
[[!template text="""what an essential feature they are to Emacs\.""" start="00:11:33.734" video="mainVideo-anju" id="subtitle"]]

</div><div class="transcript-heading">[[!template new="1" text="""Text formatting""" start="00:11:41.258" video="mainVideo-anju" id="subtitle"]]</div><div>[[!template new="1" text="""For text modes, a text formatting menu is""" start="00:11:41.258" video="mainVideo-anju" id="subtitle"]]
[[!template text="""provided by the menu bar\.""" start="00:11:43.899" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Anju enhances this by adding menus for""" start="00:11:46.437" video="mainVideo-anju" id="subtitle"]]
[[!template text="""transforming, styling, and filling in selected text\.""" start="00:11:48.821" video="mainVideo-anju" id="subtitle"]]

</div><div class="transcript-heading">[[!template new="1" text="""Macro recorder menu""" start="00:12:12.998" video="mainVideo-anju" id="subtitle"]]</div><div>[[!template new="1" text="""Emacs has the ability to record user actions for""" start="00:12:12.998" video="mainVideo-anju" id="subtitle"]]
[[!template text="""playback later\.""" start="00:12:16.121" video="mainVideo-anju" id="subtitle"]]
[[!template text="""This is called a keyboard macro, but despite its""" start="00:12:17.662" video="mainVideo-anju" id="subtitle"]]
[[!template text="""naming, such macros can also record mouse events\.""" start="00:12:20.444" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Anju adds a macro recorder menu to the Tools""" start="00:12:25.909" video="mainVideo-anju" id="subtitle"]]
[[!template text="""menu, providing access to both creating and""" start="00:12:28.651" video="mainVideo-anju" id="subtitle"]]
[[!template text="""editing macros\.""" start="00:12:31.273" video="mainVideo-anju" id="subtitle"]]
[[!template text="""This demo shows the creation of a macro with a""" start="00:12:33.074" video="mainVideo-anju" id="subtitle"]]
[[!template text="""counter and shows how the macro can be edited and""" start="00:12:35.837" video="mainVideo-anju" id="subtitle"]]
[[!template text="""the counter adjusted\.""" start="00:12:41.121" video="mainVideo-anju" id="subtitle"]]

</div><div class="transcript-heading">[[!template new="1" text="""Context menus""" start="00:13:25.882" video="mainVideo-anju" id="subtitle"]]</div><div>[[!template new="1" text="""Anju builds off context menu mode to provide many""" start="00:13:25.882" video="mainVideo-anju" id="subtitle"]]
[[!template text="""enhancements to many different modes\.""" start="00:13:29.183" video="mainVideo-anju" id="subtitle"]]
[[!template text="""These menus test multiple criteria to offer a""" start="00:13:32.124" video="mainVideo-anju" id="subtitle"]]
[[!template text="""concise set of context-sensitive commands\.""" start="00:13:35.184" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Anju also provides context menus that are""" start="00:13:38.705" video="mainVideo-anju" id="subtitle"]]
[[!template text="""non-mode specific as well\.""" start="00:13:41.426" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Let's see a couple of these context menus in action\.""" start="00:13:44.026" video="mainVideo-anju" id="subtitle"]]

</div><div class="transcript-heading">[[!template new="1" text="""Dired context menu""" start="00:13:49.881" video="mainVideo-anju" id="subtitle"]]</div><div>[[!template new="1" text="""Anju provides a simplified context menu for Dired""" start="00:13:49.881" video="mainVideo-anju" id="subtitle"]]
[[!template text="""that focuses on basic commands""" start="00:13:54.125" video="mainVideo-anju" id="subtitle"]]
[[!template text="""for a selected file or directory\.""" start="00:13:56.728" video="mainVideo-anju" id="subtitle"]]
[[!template text="""The context menu supports creating, hiding,""" start="00:13:59.991" video="mainVideo-anju" id="subtitle"]]
[[!template text="""and removing subviews, which enables work""" start="00:14:02.753" video="mainVideo-anju" id="subtitle"]]
[[!template text="""on a directory hierarchy\.""" start="00:14:05.656" video="mainVideo-anju" id="subtitle"]]

</div><div class="transcript-heading">[[!template new="1" text="""Elisp context menu""" start="00:14:12.815" video="mainVideo-anju" id="subtitle"]]</div><div>[[!template new="1" text="""Dig deep enough and you'll find Elisp everywhere""" start="00:14:12.815" video="mainVideo-anju" id="subtitle"]]
[[!template text="""in Emacs\.""" start="00:14:15.637" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Anji offers a way to evaluate and debug Elisps""" start="00:14:16.958" video="mainVideo-anju" id="subtitle"]]
[[!template text="""through a context menu\.""" start="00:14:20.140" video="mainVideo-anju" id="subtitle"]]
[[!template text="""In this demo, we'll debug a command that copies""" start="00:14:22.142" video="mainVideo-anju" id="subtitle"]]
[[!template text="""all the notes blocks in an Org file into the kill ring\.""" start="00:14:25.084" video="mainVideo-anju" id="subtitle"]]
[[!template text="""As part of the debugging, we'll set up a""" start="00:14:29.367" video="mainVideo-anju" id="subtitle"]]
[[!template text="""watchlist to keep track of variables""" start="00:14:31.648" video="mainVideo-anju" id="subtitle"]]
[[!template text="""and set some breakpoints\.""" start="00:14:34.330" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Note how everything here is mouse driven\.""" start="00:14:36.612" video="mainVideo-anju" id="subtitle"]]
[[!template text="""There's no need to recall arcane key bindings\.""" start="00:14:39.154" video="mainVideo-anju" id="subtitle"]]
[[!template text="""We'll set some breakpoints\.""" start="00:14:44.230" video="mainVideo-anju" id="subtitle"]]
[[!template text="""The first one on the loop, the while loop in""" start="00:14:46.291" video="mainVideo-anju" id="subtitle"]]
[[!template text="""there, and then the one right after the loop""" start="00:14:49.792" video="mainVideo-anju" id="subtitle"]]
[[!template text="""completes, which is the kill new statement on""" start="00:14:53.834" video="mainVideo-anju" id="subtitle"]]
[[!template text="""lines 13 and 20\.""" start="00:14:57.995" video="mainVideo-anju" id="subtitle"]]
[[!template text="""And then we'll do a little step through\.""" start="00:15:02.337" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Get to our first breakpoint and we'll watch some variables\.""" start="00:15:11.270" video="mainVideo-anju" id="subtitle"]]
[[!template text="""We'll watch the start variable and the end variable\.""" start="00:15:15.773" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Those are two variables that keep track of the""" start="00:15:18.954" video="mainVideo-anju" id="subtitle"]]
[[!template text="""start of a region and the end of a region for""" start="00:15:24.378" video="mainVideo-anju" id="subtitle"]]
[[!template text="""where a notes block is in the Org file that is\.""" start="00:15:29.100" video="mainVideo-anju" id="subtitle"]]
[[!template text="""We'll see that the value of start is""" start="00:15:37.685" video="mainVideo-anju" id="subtitle"]]
[[!template text="""changed to 153 if we step through again\.""" start="00:15:40.953" video="mainVideo-anju" id="subtitle"]]
[[!template text="""We'll see that the end variable has updated at""" start="00:15:49.261" video="mainVideo-anju" id="subtitle"]]
[[!template text="""the end of that loop to 258\.""" start="00:15:53.685" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Then we'll remove those breakpoints on loop and""" start="00:15:57.449" video="mainVideo-anju" id="subtitle"]]
[[!template text="""advance always so that we get out of it\.""" start="00:16:01.212" video="mainVideo-anju" id="subtitle"]]
[[!template text="""And here we'll want to inspect a list of strings""" start="00:16:05.355" video="mainVideo-anju" id="subtitle"]]
[[!template text="""called buflist\.""" start="00:16:11.064" video="mainVideo-anju" id="subtitle"]]
[[!template text="""We can see that all of the contents of the""" start="00:16:13.087" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Org file have been extracted\.""" start="00:16:17.173" video="mainVideo-anju" id="subtitle"]]

</div><div class="transcript-heading">[[!template new="1" text="""Org Mode context menu""" start="00:16:25.837" video="mainVideo-anju" id="subtitle"]]</div><div>[[!template new="1" text="""Anju's context menu for Org Mode takes advantage""" start="00:16:25.837" video="mainVideo-anju" id="subtitle"]]
[[!template text="""of structural information about the Org file\.""" start="00:16:28.799" video="mainVideo-anju" id="subtitle"]]
[[!template text="""The context menu can test what kind of section""" start="00:16:31.500" video="mainVideo-anju" id="subtitle"]]
[[!template text="""the point is in and adjust itself accordingly\.""" start="00:16:34.101" video="mainVideo-anju" id="subtitle"]]
[[!template text="""For example, if the point is on a heading,""" start="00:16:37.323" video="mainVideo-anju" id="subtitle"]]
[[!template text="""commands relevant to a heading are shown\.""" start="00:16:40.464" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Similar treatment is done for other structural elements\.""" start="00:16:44.346" video="mainVideo-anju" id="subtitle"]]

</div><div class="transcript-heading">[[!template new="1" text="""Menu item introspection""" start="00:16:56.073" video="mainVideo-anju" id="subtitle"]]</div><div>[[!template new="1" text="""In Emacs, nearly everything is introspectable,""" start="00:16:56.073" video="mainVideo-anju" id="subtitle"]]
[[!template text="""and that includes menu items\.""" start="00:16:59.095" video="mainVideo-anju" id="subtitle"]]
[[!template text="""In this demo, we can find out the command""" start="00:17:01.176" video="mainVideo-anju" id="subtitle"]]
[[!template text="""underlying the jump command in the registers menu\.""" start="00:17:03.817" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Let's see the demo in action\.""" start="00:17:08.819" video="mainVideo-anju" id="subtitle"]]
[[!template text="""So, we'll first go to the help menu in the menu""" start="00:17:10.421" video="mainVideo-anju" id="subtitle"]]
[[!template text="""bar, click on describe key or mouse, and then""" start="00:17:13.563" video="mainVideo-anju" id="subtitle"]]
[[!template text="""select the jump item in the registers menu\.""" start="00:17:17.925" video="mainVideo-anju" id="subtitle"]]
[[!template text="""You'll see a help buffer pop up\.""" start="00:17:21.327" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Showing that it is the command jump to register""" start="00:17:24.186" video="mainVideo-anju" id="subtitle"]]
[[!template text="""pressing S will then show the source code\.""" start="00:17:26.909" video="mainVideo-anju" id="subtitle"]]

</div><div class="transcript-heading">[[!template new="1" text="""Anju summary""" start="00:17:33.994" video="mainVideo-anju" id="subtitle"]]</div><div>[[!template new="1" text="""In summary, Anju updates mouse interactions""" start="00:17:33.994" video="mainVideo-anju" id="subtitle"]]
[[!template text="""in Emacs to be familiar to users more accustomed to""" start="00:17:36.936" video="mainVideo-anju" id="subtitle"]]
[[!template text="""a point-and-click experience\.""" start="00:17:40.058" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Anju does so by enhancing the mode line,""" start="00:17:41.900" video="mainVideo-anju" id="subtitle"]]
[[!template text="""the menu bar and context menus\.""" start="00:17:46.959" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Only a subset of the menus provided by Anju have""" start="00:17:50.342" video="mainVideo-anju" id="subtitle"]]
[[!template text="""been demonstrated here\.""" start="00:17:53.164" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Viewers are welcome to try Anju out to discover""" start="00:17:55.505" video="mainVideo-anju" id="subtitle"]]
[[!template text="""all of its offerings\.""" start="00:17:58.267" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Anju is available on MELPA and you can get its""" start="00:18:01.209" video="mainVideo-anju" id="subtitle"]]
[[!template text="""source code on GitHub\.""" start="00:18:04.172" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Feedback is always welcome\.""" start="00:18:06.233" video="mainVideo-anju" id="subtitle"]]
[[!template text="""Thank you\.""" start="00:18:08.295" video="mainVideo-anju" id="subtitle"]]</div>

</div>

Captioner: sachac

Questions or comments? Please e-mail [kickingvegas@gmail.com](mailto:kickingvegas@gmail.com?subject=Comment%20for%20EmacsConf%202023%20anju%3A%20Revisiting%20Emacs%20Mouse%20Interactions%20with%20Anju)


<!-- End of emacsconf-publish-after-page -->