summaryrefslogtreecommitdiffstats
path: root/2021/captions/emacsconf-2021-frownies--the-true-frownies-are-the-friends-we-made-along-the-way-an-anecdote-of-emacs-s-malleability--case-duckworth--main.vtt
blob: 41e5e2488461342f9118bc020e81c9fe7fdaed93 (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
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
WEBVTT

00:00.000 --> 00:02.770
Hi everyone! My name is Case Duckworth

00:02.770 --> 00:04.070
and I've been using Emacs

00:04.070 --> 00:05.536
for about a year and a half.

00:05.536 --> 00:06.736
If you do the math,

00:06.736 --> 00:08.403
you'll see that was pretty soon

00:08.403 --> 00:11.470
after the pandemic hit us in the U.S.

00:11.470 --> 00:13.970
While I was busy making bread

00:13.970 --> 00:14.970
and walking my dogs,

00:14.970 --> 00:17.936
trying not to drive myself crazy

00:17.936 --> 00:18.970
in the house,

00:18.970 --> 00:20.603
I tried Emacs again.

00:20.603 --> 00:23.270
I don't know if I was successful in that,

00:23.270 --> 00:26.936
going crazy... I mean, I still use Emacs.

00:26.936 --> 00:30.436
But I have been able to enjoy

00:30.436 --> 00:31.670
the infinitely-malleable,

00:31.670 --> 00:32.870
immensely enjoyable,

00:32.870 --> 00:34.936
and sublimely parenthetical world

00:34.936 --> 00:36.470
of Emacs the editor,

00:36.470 --> 00:37.570
the community,

00:37.570 --> 00:39.470
and of course, the Lisp language.

00:39.470 --> 00:42.270
So. And in this I'm going to

00:42.270 --> 00:46.103
explore just a little anecdote of that,

00:46.103 --> 00:48.536
a little nugget of what I think

00:48.536 --> 00:50.870
makes Emacs so great,

00:50.870 --> 00:53.703
using the lens of a package that I wrote

00:53.703 --> 00:57.370
about a month ago now

00:57.370 --> 00:59.536
called frowny.el.

00:59.536 --> 00:01:01.569
So yeah, let's go ahead and jump in.

01:01.570 --> 01:08.236
So, before the beginning,

01:08.236 --> 01:09.036
I want to talk about

01:09.036 --> 01:10.770
my very beginning with Linux.

01:10.770 --> 01:12.136
I first installed Linux

01:12.136 --> 01:13.170
for the first time

01:13.170 --> 01:15.703
as a freshman in college, way back in 2008.

01:15.703 --> 01:17.703
I don't know if you were around,

01:17.703 --> 01:19.503
but 2008 was not

01:19.503 --> 01:21.570
the year of the Linux desktop.

01:21.570 --> 01:26.803
WiFi was weird. Sound was weird.

01:26.803 --> 01:30.136
Everything was odd and strange and weird.

01:30.136 --> 01:31.670
I mean, it wasn't good.

01:31.670 --> 01:33.603
So, at that time,

01:33.603 --> 01:36.203
I knew absolutely nothing about anything.

01:36.203 --> 01:41.203
I installed this terrible

01:41.203 --> 01:43.470
distro called gOS.

01:43.470 --> 01:44.803
I always forget what it's called

01:44.803 --> 01:45.703
and then I looked it up.

01:45.703 --> 01:47.636
And this is what I looked at

01:47.636 --> 01:49.836
when I signed in.

01:49.836 --> 01:51.903
It wasn't good.

01:51.903 --> 01:53.203
I think it was trying to

01:53.203 --> 01:57.003
integrate better with Google tools?

01:57.003 --> 01:58.870
So I was, like, oh, yeah, you know,

01:58.870 --> 02:00.870
Gmail and Google Calendar,

02:00.870 --> 02:02.436
so this will have it all there.

02:02.436 --> 02:04.536
Anyway, the company's defunct now

02:04.536 --> 02:07.003
and it's pretty obvious why.

02:07.003 --> 00:02:07.635
It was really bad.

02:07.636 --> 02:08.903
So I thought to myself,

02:08.903 --> 02:11.670
I'll delete the partition.

02:11.670 --> 02:12.903
Easy peasy. So I did,

02:12.903 --> 02:13.770
and I rebooted,

02:13.770 --> 02:15.336
and the Master Boot Record was gone,

02:15.336 --> 02:16.370
so I couldn't boot Windows,

02:16.370 --> 02:17.936
and it was all, bleah, and I was like,

02:17.936 --> 02:22.103
oh, shit, I have to do my schoolwork.

02:24.536 --> 02:26.203
So I thought I was terribly hosed

02:26.203 --> 02:28.870
so I just installed Linux.

02:28.870 --> 02:31.970
I think I installed Crunchbang Linux first.

02:31.970 --> 02:33.270
It looked like this.

02:33.270 --> 02:35.203
It's not super exciting.

02:35.203 --> 02:41.303
It was an Openbox-based, Debian-based distro

02:41.303 --> 02:43.403
run by this one guy out in England.

02:43.403 --> 02:46.570
It was great. I really enjoyed it.

02:46.570 --> 02:47.970
The forums were amazing.

02:47.970 --> 02:50.603
It still kind of lives on

02:50.603 --> 02:53.003
through a project called BunsenLabs

02:53.003 --> 02:54.936
so go check them out if you want.

02:54.936 --> 00:02:56.169
It was a good time. Anyway.

02:56.170 --> 02:58.803
I was using that for a long time,

02:58.803 --> 03:00.436
and, you know, probably familiar

03:00.436 --> 03:01.670
to many of you,

03:01.670 --> 03:02.903
I hopped around

03:02.903 --> 03:03.836
from distro to distro,

03:03.836 --> 03:08.970
from WM to DE, just on and on and on,

03:08.970 --> 03:10.270
trying different things.

03:10.270 --> 03:12.003
I'm not a programmer.

03:12.003 --> 03:12.736
I actually went to school

03:12.736 --> 03:15.136
for English writing,

03:15.136 --> 03:17.536
and so I learned programming

03:17.536 --> 03:19.636
mostly from configuring

03:19.636 --> 03:20.836
different window managers.

03:20.836 --> 03:23.803
I learned Lua with AwesomeWM.

03:23.803 --> 03:25.836
I learned Haskell with Xmonad.

03:25.836 --> 03:28.070
Sort of Haskell. I mean, I liked Haskell.

03:28.070 --> 03:30.770
I like Haskell a lot,

03:30.770 --> 03:32.536
at least the syntax.

03:32.536 --> 03:36.070
It looks like words.

03:36.070 --> 03:40.103
You can define functions multiple times

03:40.103 --> 03:41.670
for different inputs.

03:41.670 --> 03:42.703
It has that really great pattern matching.

03:42.703 --> 03:45.270
The thing I really didn't get was monads.

03:45.270 --> 03:46.570
What is a monad?

03:46.570 --> 03:48.103
Is it a burrito? Is it a box?

03:48.103 --> 03:49.770
Is it a burrito inside of a box?

03:49.770 --> 03:51.370
Is it a box inside of a burrito?

03:51.370 --> 03:53.203
Is there a cat involved,

03:53.203 --> 03:55.336
or a superposition of such?

03:55.336 --> 03:58.936
I don't know. Anyway, it got confusing.

03:58.936 --> 04:01.436
That's really where I lost me.

04:01.436 --> 04:05.170
Again, you know, if you like Haskell,

04:05.170 --> 04:05.970
if you write Haskell,

04:05.970 --> 04:08.136
more power to you.

04:08.136 --> 04:11.370
It didn't fit my brain right.

04:11.370 --> 04:14.403
So that was that,

04:14.403 --> 04:15.436
but it kinda ruined me

04:15.436 --> 04:17.003
for a lot of other programming languages,

04:17.003 --> 04:19.970
because the functional style

04:19.970 --> 04:22.403
I really get. That part I did get.

04:22.403 --> 04:25.703
And stuff like Python, really,

04:25.703 --> 04:27.070
object orientation...

04:27.070 --> 04:32.570
I would always get way too into classes

04:32.570 --> 04:34.703
and figuring out this and that.

04:34.703 --> 04:35.870
It just didn't work for me.

04:35.870 --> 04:37.870
I was kind of floating.

04:37.870 --> 04:41.503
Learned Bash, which is, you know, Bash.

04:41.503 --> 04:43.603
It's fine, but it's Bash.

04:43.603 --> 04:46.703
It wasn't great either.

04:46.703 --> 04:51.470
Anyway. That was six years or so,

04:51.470 --> 00:04:52.935
just kind of did that, right.

04:52.936 --> 04:55.870
And yes, I was using Vim.

04:55.870 --> 04:58.370
I mean... Keeps you clean, right?

04:58.370 --> 04:59.636
I'm just kidding.

04:59.636 --> 05:02.536
I was using Vim, the editor.

05:02.536 --> 05:03.470
It was fine.

05:03.470 --> 05:05.936
It was great. I mean...

05:05.936 --> 05:08.203
Emacs and Vim, they go head to head

05:08.203 --> 05:10.536
because they're both 40 years old.

05:10.536 --> 05:13.270
They both are super powerful.

05:13.270 --> 05:15.336
They both have their own paradigms.

05:15.336 --> 05:16.836
If you get into it, then it's like

05:16.836 --> 05:19.236
powpowpow, you're doing all this stuff

05:19.236 --> 05:20.503
it's great.

05:20.503 --> 05:22.036
I wrote some plugins with Vim,

05:22.036 --> 05:25.536
a couple of themes, this and that,

05:25.536 --> 05:28.636
but you know, VimScript is not great.

05:28.636 --> 05:31.803
I think one of the common

05:31.803 --> 05:34.936
criticisms of Elisp

05:34.936 --> 05:37.170
it's like, oh, it's this weird kind of...

05:37.170 --> 05:38.536
It's written for (inaudible)...

05:38.536 --> 05:43.336
Tell you, it's way less than

05:43.336 --> 05:44.470
VimScript is. Oof.

05:44.470 --> 05:49.670
Anyway. That, also, really terminal-first,

05:49.670 --> 05:52.570
which I used for a long time and then

05:52.570 --> 05:54.436
I only think I started noticing

05:54.436 --> 05:56.236
now that I'm using Emacs more,

05:56.236 --> 05:57.803
like, that terminal-first workflow,

05:57.803 --> 06:01.136
again, for my brain,

06:01.136 --> 06:02.803
it doesn't super work for me.

06:02.803 --> 06:06.636
I always had this Platonic ideal

06:06.636 --> 06:08.470
of what a workflow should look like,

06:08.470 --> 06:10.836
and I was always working towards it.

06:10.836 --> 06:12.803
I would run into this problem

06:12.803 --> 06:14.003
and I wouldn't know how to solve it.

06:14.003 --> 06:15.736
so I kind of quit. Do something else.

06:15.736 --> 06:17.003
I think that's part of why

06:17.003 --> 06:17.836
I had so much churn

06:17.836 --> 06:18.670
for such a long time.

06:18.670 --> 06:20.336
Because at the end of the day,

06:20.336 --> 06:23.936
window managing, you're just

06:23.936 --> 06:26.567
moving around little boxes on your screen.

06:26.567 --> 06:30.536
So I was spinning wheels

06:30.536 --> 06:31.203
for a long time.

06:31.203 --> 06:36.203
But yes. And it wasn't like

06:36.203 --> 06:36.803
it was all bad.

06:36.803 --> 06:38.036
Most of this stuff

06:38.036 --> 06:39.603
just came out now that

06:39.603 --> 06:40.236
I'm thinking about it,

06:40.236 --> 06:42.970
now that I'm kind of going through this

06:42.970 --> 06:45.736
in my head, like, that part of it wasn't great.

06:45.736 --> 06:46.703
I was having a good time.

06:46.703 --> 06:48.670
I was still... Open source,

06:48.670 --> 06:49.936
I was getting in the community.

06:49.936 --> 06:50.603
I was doing all this stuff.

06:50.603 --> 00:06:51.802
It was all great.

06:51.803 --> 06:56.336
But anyway, the pandemic hit, obviously,

06:56.336 --> 06:58.736
really hard, last spring, in the US.

06:58.736 --> 07:00.870
And here we are,

07:00.870 --> 07:03.070
talking about the pandemic in 2021.

07:03.070 --> 07:04.370
Can you imagine?

07:04.370 --> 07:05.836
So, I didn't lose my job.

07:05.836 --> 07:06.903
Thank goodness.

07:06.903 --> 07:09.236
But I did... I work for the government,

07:09.236 --> 07:10.236
I was sent home for two months.

07:10.236 --> 07:11.803
I had all this free time on my hands.

07:11.803 --> 07:13.903
I got into baking,

07:13.903 --> 07:16.236
I bought a 50-pound bag of flour.

07:16.236 --> 07:18.470
I started a bread-themed tilde server,

07:18.470 --> 07:20.436
you know, those shared Unix servers

07:20.436 --> 07:21.803
all the cool kids talk about?

07:21.803 --> 07:26.970
Yeah, it's breadpunk.club, go check it out!

07:26.970 --> 00:07:29.769
Join if you want. Anyway. Yeah.

07:29.770 --> 07:32.703
So I decided to try Emacs again.

07:32.703 --> 07:33.803
Kind of on a whim, I think.

07:33.803 --> 07:36.170
I don't super remember, but I think I did.

07:36.170 --> 07:42.103
I tried Spacemacs. It didn't stick.

07:42.103 --> 07:44.036
Spacemacs was trying to be Vim,

07:44.036 --> 07:46.403
but enough things didn't fit in

07:46.403 --> 07:48.636
with what I was expecting

07:48.636 --> 07:50.603
with my Vim workflow.

07:50.603 --> 07:53.836
All sorts of plugins that did certain things

07:53.836 --> 07:57.270
and I didn't know to just get into Spacemacs.

07:57.270 --> 08:01.070
It just didn't work for me.

08:01.070 --> 08:05.436
I tried Emacs. This time, it stuck.

08:05.436 --> 08:07.370
I started out just vanilla,

08:07.370 --> 08:09.470
basic no init.el,

08:09.470 --> 08:11.103
then I wrote an init.el,

08:11.103 --> 08:12.636
and then I rewrote my init.el,

08:12.636 --> 08:16.570
and then I took my init.el, crumpled it up,

08:16.570 --> 08:17.736
threw it in the trash can,

08:17.736 --> 08:19.603
wrote it again from scratch.

08:19.603 --> 08:21.203
I'm actually currently

08:21.203 --> 08:23.036
in the middle of Bankruptcy #8,

08:23.036 --> 08:25.136
which I think I really got this time.

08:25.136 --> 08:29.036
It's either that or Number 9.

08:29.036 --> 08:32.936
So I have 1700-ish commits.

08:32.936 --> 08:37.536
I also have like, 3 or 4 .emacs repositories

08:37.536 --> 08:41.500
around my various Git hosting platforms

08:41.500 --> 08:42.270
that I use.

08:42.270 --> 08:44.103
I was on GitHub, GitLab, ~/git...

08:44.103 --> 08:47.403
I don't use Git very well.

08:47.403 --> 00:08:50.002
I'm very much amateur in that entire thing.

08:50.003 --> 08:52.970
Anyway, that is all to say

08:52.970 --> 08:55.170
I got into it, right.

08:55.170 --> 08:57.470
Like, really into it.

08:57.470 --> 08:59.000
I was watching

08:59.000 --> 09:02.136
Emacs Conference videos. Live.

09:02.136 --> 09:06.003
I was reading /r/emacs.

09:06.003 --> 09:07.036
I was reading Planet Emacs.

09:07.036 --> 09:09.036
I subscribed to both.

09:09.036 --> 09:11.603
I have other blogs that I read.

09:11.603 --> 09:13.570
All the greats.

09:13.570 --> 09:16.203
Everyone who's presenting here, probably.

09:16.203 --> 09:18.836
I started watching people on YouTube

09:18.836 --> 09:20.803
like Prot, like David Wilson

09:20.803 --> 09:23.003
who does System Crafters.

09:23.003 --> 09:25.336
I was already on IRC

09:25.336 --> 09:26.836
with the tildeverse,

09:26.836 --> 09:29.670
and so I hopped over to #emacs on Freenode

09:29.670 --> 09:30.936
(remember Freenode?).

09:30.936 --> 09:34.403
Anyway, it was a good time.

09:34.403 --> 09:36.003
So I was doing all this stuff.

09:36.003 --> 00:09:38.235
And... oh yeah. Right.

09:38.236 --> 09:40.636
Anyway, so that's all to say...

09:40.636 --> 09:46.736
Frowns. I was on #systemcrafters channel

09:46.736 --> 09:47.970
on libera.chat,

09:47.970 --> 09:51.203
the channel for the YouTube channel

09:51.203 --> 09:53.403
System Crafters by David Wilson.

09:53.403 --> 09:55.436
I think he's on later.

09:55.436 --> 09:57.070
I'm sure he'll talk about it.

09:57.070 --> 09:58.370
I don't know what he's talking about.

09:58.370 --> 10:01.270
Anyway, one day we were chatting

10:01.270 --> 10:02.770
and this guy alphapapa, who also

10:02.770 --> 10:08.236
has written a lot of these packages, said

10:08.236 --> 10:09.370
"electric-pair-mode messes up

10:09.370 --> 10:10.733
my frowny faces sometimes."

10:10.733 --> 10:14.036
You can see here

10:14.036 --> 10:15.170
this frowny, what is this...

10:15.170 --> 10:23.136
You can see it there on the screen.

10:23.136 --> 10:24.303
What is that, right?

10:24.303 --> 10:27.070
It's terrifying.

10:27.070 --> 10:28.203
What is this?

10:28.203 --> 10:30.970
What is that?

10:30.970 --> 10:31.803
I don't know.

10:31.803 --> 00:10:32.735
I don't know what that is.

10:32.736 --> 10:34.736
And then I said, you know,

10:34.736 --> 10:35.567
"I have a hook

10:35.567 --> 10:36.536
that disables electric-pair-mode

10:36.536 --> 10:37.970
for chat buffers."

10:37.970 --> 10:39.136
Which, actually, fun fact,

10:39.136 --> 10:40.167
I was lying.

10:40.167 --> 10:41.836
Not that that matters.

10:41.836 --> 10:43.370
I have a hook.

10:43.370 --> 10:44.436
You could have a hook

10:44.436 --> 10:46.203
that just disables electric-pair-mode

10:46.203 --> 10:46.800
in chat buffers.

10:46.800 --> 10:47.803
To which he replied,

10:47.803 --> 10:50.667
"Yeah, but I want electric-pair-mode

10:50.667 --> 10:51.900
everywhere, except for

10:51.900 --> 10:53.670
when I type a frowny face."

10:53.670 --> 10:56.503
And this sandwich face. What is that?

10:56.503 --> 10:59.870
He said, "I could stop typing frowny faces."

10:59.870 --> 11:01.270
And then I said, "Hmm..."

11:01.270 --> 11:02.533
And then I said, "I feel like

11:02.533 --> 11:03.200
you're in the best position

11:03.200 --> 11:05.336
to write a package, like frowny.el,"

11:05.336 --> 11:07.270
I said as a joke.

11:07.270 --> 11:10.636
And then conversation went on,

11:10.636 --> 11:12.636
we talked about... made some jokes

11:12.636 --> 00:11:14.669
about Lisp and all that stuff.

11:14.670 --> 11:18.370
So anyway, went on, went on,

11:18.370 --> 11:20.503
and then apparently,

11:20.503 --> 11:21.703
23 minutes later,

11:21.703 --> 11:24.603
I had a frowny.el package

11:24.603 --> 11:26.770
just wrote up real quick.

11:26.770 --> 11:30.903
And yeah. That was it.

11:30.903 --> 11:31.803
I said, you know, buddy,

11:31.803 --> 00:11:33.069
anyway...

11:33.070 --> 11:34.270
So now we're going to look at

11:34.270 --> 11:35.803
the package that I wrote.

11:35.803 --> 11:36.970
frowny.el.

11:36.970 --> 11:40.070
It was actually pretty easy.

11:40.070 --> 11:41.936
Let's see here.

11:41.936 --> 11:44.170
This is it now.

11:44.170 --> 11:50.203
I kind of want to go back into...

11:50.203 --> 11:53.236
Let's go back to the very beginning.

11:53.236 --> 11:56.536
We'll see what we have here.

11:56.536 --> 11:57.303
Here's our very first,

11:57.303 --> 11:59.370
my very first commit.

11:59.370 --> 12:03.370
I already had all of this crap.

12:03.370 --> 12:05.736
Oh, I already did have a...

12:05.736 --> 12:08.336
I had a defgroup, I had frowny-eyes...

12:08.336 --> 12:11.236
This is basically the way I thought it was.

12:11.236 --> 12:14.736
You want to insert a frowny face.

12:14.736 --> 12:16.670
You type in the colon,

12:16.670 --> 12:18.670
or the equal sign, or whatever.

12:18.670 --> 12:19.836
for the eyes,

12:19.836 --> 12:21.436
and then you type the open parenthesis

12:21.436 --> 12:22.836
for the frown.

12:22.836 --> 12:25.703
And the problem is that

12:25.703 --> 12:27.870
the parenthesis then triggers

12:27.870 --> 12:29.170
electric-pair-mode.

12:29.170 --> 12:30.303
It's like, oh, no, I got

12:30.303 --> 12:32.503
a close parenthesis.

12:32.503 --> 12:33.836
So we just short-circuit that

12:33.836 --> 12:36.270
whenever there's a thing,

12:36.270 --> 12:38.636
a colon or equals sign before,

12:38.636 --> 12:40.136
and just insert the thing.

12:40.136 --> 12:41.736
Where did it go?

12:41.736 --> 12:43.303
That's kind of what I did.

12:43.303 --> 12:45.370
So I wrote out... This is it.

12:45.370 --> 12:46.603
This is the whole package.

12:46.603 --> 12:49.803
It's one function, one minor mode,

12:49.803 --> 12:52.536
one defcustom, and one group. That's it.

12:52.536 --> 12:54.303
Super simple.

12:54.303 --> 12:56.970
Basically, all it does is

12:56.970 --> 12:59.803
it inserts a frowny

12:59.803 --> 13:04.603
if it looks back and sees frowny eyes

13:04.603 --> 13:07.536
which are up here.

13:07.536 --> 13:08.136
The eyes are up here.

13:08.136 --> 13:11.536
Colon, equals sign...

13:11.536 --> 13:13.336
and then it inserts it

13:13.336 --> 13:15.970
or it does a self insert command.

13:15.970 --> 13:17.636
That simple.

13:17.636 --> 13:18.803
self-insert-command is what

13:18.803 --> 13:22.770
electric-pair-mode hooks into.

13:22.770 --> 13:24.370
So that's it.

13:24.370 --> 13:25.503
And then the minor mode

13:25.503 --> 13:27.070
just makes it a minor mode.

13:27.070 --> 13:28.503
So that was that.

13:28.503 --> 13:32.436
And you know, that worked just fine.

13:32.436 --> 13:35.670
That's the thing. It works just fine.

13:35.670 --> 13:37.270
Of course, after that,

13:37.270 --> 13:39.103
I had it do a couple of different things.

13:39.103 --> 13:40.236
I added a mascot.

13:40.236 --> 13:42.370
I had to add a README.

13:42.370 --> 13:45.070
I added a global-frowny-mode

13:45.070 --> 13:49.036
which was kind of interesting

13:49.036 --> 13:49.870
because I had to figure out

13:49.870 --> 13:51.603
turn on the frowny mode,

13:51.603 --> 13:56.336
I wrote this define-globalized-minor-mode

13:56.336 --> 13:58.603
which... is that the one

13:58.603 --> 14:00.870
No, that one's not super new.

14:00.870 --> 14:04.203
There was another one. Something else

14:04.203 --> 14:07.170
that was actually for 28 or 27,

14:07.170 --> 14:09.036
and I tried using it at work,

14:09.036 --> 14:10.970
where I have Windows

14:10.970 --> 14:13.436
and it was 27,

14:13.436 --> 14:14.670
so it must have been for 28.

14:14.670 --> 14:16.103
Anyway, something didn't work

14:16.103 --> 14:17.170
and I had to do all this stuff.

14:17.170 --> 14:20.870
Oops, sorry.

14:20.870 --> 14:23.070
I added some customization options,

14:23.070 --> 14:25.370
made package-lint happy...

14:25.370 --> 14:27.336
So yeah, let's see.

14:27.336 --> 14:30.170
That's 0.1.

14:30.170 --> 14:33.370
This version 0.1 was basically

14:33.370 --> 14:36.770
basic information.

14:36.770 --> 14:39.670
So then somebody... I put it on GitHub,

14:39.670 --> 14:40.270
good to go.

14:40.270 --> 14:43.103
It actually got some traction on Reddit.

14:43.103 --> 14:45.903
alphapapa, shout out to you

14:45.903 --> 14:47.303
who posted it there.

14:47.303 --> 14:50.636
But then I got an issue.

14:50.636 --> 14:51.770
Somebody said, hey, could you add

14:51.770 --> 14:52.936
smiley support?

14:52.936 --> 14:54.403
I was, like, well,

14:54.403 --> 14:55.070
I don't really understand

14:55.070 --> 14:56.003
why that's important.

14:56.003 --> 14:58.236
Well, you know, why not?

14:58.236 --> 15:01.270
They had a use case for it, I forget,

15:01.270 --> 15:02.270
but they had a use case for it.

15:02.270 --> 15:03.770
So, okay, fine.

15:03.770 --> 15:05.270
So I added smiley support right here.

15:05.270 --> 15:12.570
Oh, and I added some more eyes

15:12.570 --> 15:13.670
at some point.

15:13.670 --> 15:16.736
Now you have... you can do a tear.

15:16.736 --> 15:18.103
You can do a nose.

15:18.103 --> 15:23.603
Let's see...

15:23.603 --> 15:27.270
I had to change frowny-self-insert

15:27.270 --> 15:28.803
to frowny-insert-character,

15:28.803 --> 15:33.400
I added frowny-self-insert-frowny

15:33.400 --> 15:34.170
right here.

15:34.170 --> 15:38.536
I added... I had an obsolete function alias.

15:38.536 --> 15:39.503
That was super fun.

15:39.503 --> 15:40.870
That was a cool thing to do.

15:40.870 --> 15:43.970
I have insert-smiley as well.

15:43.970 --> 15:45.536
They're both very similar.

15:45.536 --> 15:47.336
They're all still there.

15:47.336 --> 15:49.403
I added a keymap.

15:49.403 --> 15:50.833
That was pretty much it.

15:50.833 --> 15:51.303
And you know, again,

15:51.303 --> 15:54.203
super simple, very small.

15:54.203 --> 15:56.270
Let me try this again.

15:56.270 --> 15:58.336
I added comments and docstrings.

15:58.336 --> 15:59.170
At some point, I decided

15:59.170 --> 16:03.870
let me try to make a frowny prog mode

16:03.870 --> 16:06.236
that only works in programming modes,

16:06.236 --> 16:07.536
that only works in strings

16:07.536 --> 16:09.303
and in comments, but...

16:09.303 --> 16:11.803
There's still a branch for it,

16:11.803 --> 16:14.003
if you want to go check it out.

16:14.003 --> 16:15.303
It wasn't super useful,

16:15.303 --> 16:16.336
and I think, actually,

16:16.336 --> 16:18.136
electric-pair-mode already does that.

16:18.136 --> 16:19.070
I'm not a hundred percent sure.

16:19.070 --> 16:21.503
I got a pull request

16:21.503 --> 16:23.903
from alphapapa, adding HISTORY.org.

16:23.903 --> 16:26.170
So you can go read the IRC logs about it.

16:26.170 --> 16:29.703
There's... Let's see...

16:29.703 --> 16:31.236
And then just recently,

16:31.236 --> 16:33.636
I actually had to add frowny-inhibit-modes

16:33.636 --> 16:39.603
because with dired, I kept getting this...

16:39.603 --> 16:43.236
I would try to hit open parenthesis

16:43.236 --> 16:47.536
which is my dired-hide-details-mode,

16:47.536 --> 16:50.536
but it kept saying, hey,

16:50.536 --> 16:51.903
it's a read-only buffer. I'm, like, what?

16:51.903 --> 16:55.303
Oh yeah! Right! It's Emacs. I can C-h k

16:55.303 --> 16:59.703
and then (, and oh, frowny-self-insert.

16:59.703 --> 17:01.636
Oh, duh. So I had to add

17:01.636 --> 17:05.036
this little frowny-inhibit-modes bit.

17:05.036 --> 17:06.836
So now there's a little custom in here.

17:06.836 --> 17:09.136
Right now, it just defaults to special-mode.

17:09.136 --> 17:12.170
I added dired myself on my config.

17:12.170 --> 17:14.236
I might add that as a default as well.

17:14.236 --> 17:15.270
I'm going to think about it.

17:15.270 --> 17:21.536
And then, yeah. So now we're at version 0.3,

17:21.536 --> 17:23.470
that's where we're at now.

17:23.470 --> 17:26.070
I just updated the README with the last one.

17:26.070 --> 17:28.603
Basically, lots of functionality,

17:28.603 --> 17:30.303
plus this frowny-inhibit-mode,

17:30.303 --> 17:32.836
and yeah, now it is just...

17:32.836 --> 17:34.503
This is it. This is the whole thing

17:34.503 --> 17:36.736
right here. It's pretty short.

17:36.736 --> 17:39.103
I think it's a total of 113 lines.

17:39.103 --> 17:42.203
But you know what, it's got...

17:42.203 --> 17:43.803
It's useful for people,

17:43.803 --> 17:45.136
and it's something where

17:45.136 --> 17:47.770
I never thought I would write

17:47.770 --> 17:49.470
software that people would use.

17:49.470 --> 17:51.136
As I said, I'm not a programmer.

17:51.136 --> 17:54.003
I'm just this guy.

17:54.003 --> 17:55.070
I like using Emacs

17:55.070 --> 17:56.103
because I'm kind of a nerd.

17:56.103 --> 17:57.436
I like tinkering around

17:57.436 --> 17:58.436
and doing things the hard way.

17:58.436 --> 18:02.570
I don't... I could use Microsoft Word.

18:02.570 --> 18:04.136
I should. I was trying to

18:04.136 --> 18:06.136
write this presentation up

18:06.136 --> 18:07.500
and my wife said, "Why don't you just

18:07.500 --> 18:08.903
write it in Google Docs?"

18:08.903 --> 18:11.503
And I said, "I don't want to."

18:11.503 --> 18:13.036
I mean, that's really it.

18:13.036 --> 18:15.036
Isn't that why we're all here?

18:15.036 --> 18:18.936
So yeah, you know,

18:18.936 --> 18:21.003
so anyway, that's the story about frowny

18:21.003 --> 18:22.270
That's the story about me,

18:22.270 --> 18:25.436
my journey to Emacs,

18:25.436 --> 18:27.136
my journey to this conference,

18:27.136 --> 18:30.636
and the journey of this package.

18:30.636 --> 18:32.536
I think it's about done.

18:32.536 --> 18:36.136
I'm not sure what else needs to go in there.

18:36.136 --> 18:38.103
If you have any suggestions,

18:38.103 --> 18:39.803
pull requests, comments,

18:39.803 --> 18:43.370
there's a GitHub right here,

18:43.370 --> 18:45.436
frowny.el.

18:45.436 --> 18:49.236
Let's see if I can pull it up.

18:49.236 --> 18:52.370
frowny.el.

18:52.370 --> 18:55.236
I'll put it on (inaudible).

18:55.236 --> 18:57.336
That's something I still don't understand.

18:57.336 --> 18:59.203
Packages, the whole keywords thing...

18:59.203 --> 19:00.236
I'm still confused on that.

19:00.236 --> 19:04.636
But yeah. Just requires Emacs 24.

19:04.636 --> 19:09.970
That's it. So anyway,

19:09.970 --> 19:12.470
I'm not sure if I'm going to be

19:12.470 --> 19:13.803
live for questions.

19:13.803 --> 19:14.736
I'm recording this, obviously,

19:14.736 --> 19:15.903
a bit before,

19:15.903 --> 19:18.636
and I will be travelling that weekend,

19:18.636 --> 19:20.303
this weekend, when you're watching this,

19:20.303 --> 19:25.236
so I'm going to... But right now,

19:25.236 --> 19:26.836
I'm recording it, I'm not 100% sure.

19:26.836 --> 19:28.636
I will know obviously by then.

19:28.636 --> 19:30.003
So maybe I'll talk to you

19:30.003 --> 19:31.070
in a moment, maybe not.

19:31.070 --> 19:33.300
Otherwise, have a

19:33.300 --> 19:34.336
great conference, everybody.

19:34.336 --> 19:38.303
I'm really excited to see everyone's talks.