~whereiseveryone/guixrus

guixrus/guixrus/packages/emacs.scm -rw-r--r-- 57.1 KiB
96b8b9a8(unmatched-parenthesis [feat] add vim-gas and vim-gas-for-neovim 15 hours ago
                                                                                
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
;;; GNU Guix --- Functional package management for GNU
;;;
;;; Copyright © 2021 jgart <jgart@dismail.de>
;;; Copyright © 2021 florhizome <florhizome@posteo.de>
;;; Copyright © 2022 Jai Vetrivelan <jaivetrivelan@gmail.com>
;;;
;;; This file is not part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (guixrus packages emacs)
  #:use-module (guixrus packages gcc)
  #:use-module (guix build-system emacs)
  #:use-module (guix build python-build-system)
  #:use-module (guix git-download)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix gexp)
  #:use-module (guix utils)
  #:use-module (guix build utils)
  #:use-module (guix build emacs-utils)
  #:use-module (guix build-system gnu)
  #:use-module (gnu packages)
  #:use-module (gnu packages base)
  #:use-module (gnu packages check)
  #:use-module (gnu packages python)
  #:use-module (gnu packages emacs-xyz)
  #:use-module (gnu packages python-xyz)
  #:use-module (gnu packages rust-apps)
  #:use-module (gnu packages terminals)
  #:use-module (gnu packages emacs)
  #:use-module (gnu packages mail)
  #:use-module (gnu packages texinfo)
  #:use-module (gnu packages autotools)
  #:use-module (gnu packages pkg-config)
  #:use-module (gnu packages glib)
  #:use-module (gnu packages webkit)
  #:use-module (gnu packages gtk)
  #:use-module (gnu packages gstreamer)
  #:use-module (gnu packages gnome)
  #:use-module (gnu packages version-control)
  #:use-module (gnu packages sqlite)
  #:use-module (ice-9 match))

(define-public emacs-edge
  (let ((commit "f66a47b5bca7a9c603040b7c62a2562a925c94d3")
        (revision "0")
        (libgccjit libgccjit-11))
    (package
      (inherit emacs-next)
      (name "emacs-edge")
      (version (git-version "29.0.50" revision commit))
      (source
       (origin
         (method git-fetch)
         (uri (git-reference
               (url "https://git.savannah.gnu.org/git/emacs.git/")
               (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32
           "1v6zw5zli2lxklh41hhc4h7abibyad8fq8z7v24n0w6iwd571y10"))))
      (arguments
       (substitute-keyword-arguments (package-arguments emacs-next)
         ((#:configure-flags flags ''())
          `(cons*
            "--with-native-compilation"
            "--with-sqlite3"
            "--with-xinput2"
            "--with-xwidgets"
            ,flags))
         ((#:phases phases ''())
          `(modify-phases ,phases
             ;; Required for configure to find libgccjit
             (add-before 'configure 'set-library-path
               (lambda* (#:key inputs #:allow-other-keys)
                 (let ((libgccjit-version ,(package-version libgccjit))
                       (libgccjit-libdir
                        (string-append
                         (assoc-ref inputs "libgccjit") "/lib/gcc/"
                         %host-type "/" ,(package-version libgccjit) "/")))
                   (setenv "LIBRARY_PATH"
                           (string-append libgccjit-libdir ":"
                                          (getenv "LIBRARY_PATH"))))
                 #t))
             ;; Add runtime library paths for libgccjit.
             (add-after 'unpack 'patch-driver-options
               (lambda* (#:key inputs #:allow-other-keys)
                 (substitute* "lisp/emacs-lisp/comp.el"
                   (("\\(defcustom native-comp-driver-options nil")
                    (format
                     #f "(defcustom native-comp-driver-options '(~s ~s ~s ~s)"
                     (string-append
                      "-B" (assoc-ref inputs "binutils") "/bin/")
                     (string-append
                      "-B" (assoc-ref inputs "glibc") "/lib/")
                     (string-append
                      "-B" (assoc-ref inputs "libgccjit") "/lib/")
                     (string-append
                      "-B" (assoc-ref inputs "libgccjit") "/lib/gcc/"))))
                 #t))))))
      (propagated-inputs
       (list gsettings-desktop-schemas glib-networking))
      (inputs
       `(("glibc" ,glibc)
         ("libgccjit" ,libgccjit)
         ("sqlite" ,sqlite)
         ("webkitgtk" ,webkitgtk-with-libsoup2)
         ,@(package-inputs emacs-next))))))

(define-public emacs-evil-next
  (package
    (inherit emacs-evil)
    (name "emacs-evil-next")
    (arguments
     `(#:emacs ,emacs
       #:phases
       (modify-phases %standard-phases
         ;; Here the \"28\" is a comment of a function lacking an
         ;; argument. Should be replaced upstream at some point.
         (add-after 'unpack 'fix-compilation-emacs-28
           (lambda _
             (mkdir-p "eln-cache")
             (setenv "EMACSNATIVELOADPATH" "eln-cache")
             (substitute* "evil-ex.el"
               (("  'comint-completion-at-point\\)")
                "  'comint-completion-at-point \"28\")"))))
         (add-before 'check 'fix-test-helpers
           (lambda _
             (substitute* "evil-test-helpers.el"
               (("\\(undo-tree-mode 1\\)") ""))))
         (add-before 'install 'make-info
           (lambda _
             (with-directory-excursion "doc/build/texinfo"
               (invoke "makeinfo" "--no-split"
                       "-o" "evil.info" "evil.texi")))))))
    (description
"Evil is an extensible vi layer for Emacs.  It emulates the main features
of Vim, and provides facilities for writing custom extensions. This
derivative package fixes the build for emacs28+ versions.")))

(define-public emacs-edge-pgtk
  (package
    (inherit emacs-edge)
    (name "emacs-edge-pgtk")
    (arguments
     (substitute-keyword-arguments (package-arguments emacs-edge)
       ((#:configure-flags flags ''())
        `(cons* "--with-pgtk" ,flags))))
    (synopsis "Emacs with pgtk support")
    (description "This package builds Emacs with pure GTK, meant for window systems
supported by GDK such as Wayland and Broadway. It is recommended that
use this package for such systems, unless you use X.")))

(define-public emacs-git-email
  (let ((release "0.2.0")
        (revision "2")
        (commit "b5ebade3a48dc0ce0c85699f25800808233c73be"))
    (package
      (name "emacs-git-email")
      (version (git-version release revision commit))
      (home-page "https://git.sr.ht/~yoctocell/git-email")
      (source
       (origin
         (method git-fetch)
         (uri (git-reference
               (url home-page)
               (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "1lk1yds7idgawnair8l3s72rgjmh80qmy4kl5wrnqvpmjrmdgvnx"))))
      (build-system emacs-build-system)
      (arguments
       `(#:phases
         (modify-phases %standard-phases
           (add-before 'install 'makeinfo
             (lambda _
               (invoke "makeinfo" "doc/git-email.texi")))
;; starting phase `make-autoloads'
;; INFO     Scraping files for git-email-autoloads.el...
;; Autoload cookie error in git-email-mu4e.el:58 (end-of-file)
;; git-email-mu4e.el:0:0: error: cl-assertion-failed: ((> (point) output-start))
;; error: in phase 'make-autoloads': uncaught exception:
;; %exception #<&invoke-error program: "/gnu/store/mbysw8z6gwrz4plvg1622aigjwlw81bm-emacs-minimal-27.2/bin/emacs" arguments: ("--quick" "--batch" "--eval=(eval '(let ((backup-inhibited t) (generated-autoload-file \"/gnu/store/ldz4b69b0aydr4p8rrj77mab9bs3v69b-emacs-git-email-0.2.0-2.b5ebade/share/emacs/site-lisp/git-email-0.2.0-2.b5ebade/git-email-autoloads.el\")) (update-directory-autoloads \"/gnu/store/ldz4b69b0aydr4p8rrj77mab9bs3v69b-emacs-git-email-0.2.0-2.b5ebade/share/emacs/site-lisp/git-email-0.2.0-2.b5ebade\")) nil)") exit-status: 255 term-signal: #f stop-signal: #f>
;; phase `make-autoloads' failed after 0.1 seconds
;; command "/gnu/store/mbysw8z6gwrz4plvg1622aigjwlw81bm-emacs-minimal-27.2/bin/emacs" "--quick" "--batch" "--eval=(eval '(let ((backup-inhibited t) (generated-autoload-file \"/gnu/store/ldz4b69b0aydr4p8rrj77mab9bs3v69b-emacs-git-email-0.2.0-2.b5ebade/share/emacs/site-lisp/git-email-0.2.0-2.b5ebade/git-email-autoloads.el\")) (update-directory-autoloads \"/gnu/store/ldz4b69b0aydr4p8rrj77mab9bs3v69b-emacs-git-email-0.2.0-2.b5ebade/share/emacs/site-lisp/git-email-0.2.0-2.b5ebade\")) nil)" failed with status 255
;; builder for `/gnu/store/zj1wp7644y485br1q38f30wb0axdkiaa-emacs-git-email-0.2.0-2.b5ebade.drv' failed with exit code 1
           (delete 'make-autoloads)
           (delete 'build))))
      (native-inputs
       `(("texinfo" ,texinfo)))
      (inputs 
        (list mu
              emacs
              emacs-piem 
              emacs-magit 
              notmuch))
      (synopsis "Integrates git and email with Emacs")
      (description "@code{git-email} provides functions for formatting
 and sending Git patches via email, without leaving Emacs.")
      (license license:gpl3+))))

(define-public emacs-piem
  (let ((release "0.3.0")
        (revision "0")
        (commit "0a571f4d82ce3f9fa350130028d5f82886c08532"))
    (package
      (name "emacs-piem")
      (version (git-version release revision commit))
      (home-page "https://git.kyleam.com/piem")
      (source
       (origin
         (method git-fetch)
         (uri (git-reference
               (url home-page)
               (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "14cw44qphgnm9dfzvj5nfrw7ha4zs9z816flbg29xcl71ljrrgss"))))
      (build-system emacs-build-system)
      (native-inputs
       `(("texinfo" ,texinfo)))
      (inputs (list emacs-magit emacs-elfeed emacs-notmuch))
      (synopsis "Integrates git and email with Emacs")
      (description "@code{piem} is a collection of Emacs libraries for
 working with public-inbox archives.")
      (license license:gpl3+))))

(define-public emacs-redo-mode
  (package
    (name "emacs-redo-mode")
    (version "0.1.0")
    (source
     (origin
       (method git-fetch)
       (uri
        (git-reference
         (url "https://github.com/cemkeylan/redo-mode")
         (commit version)))
       (file-name (git-file-name name version))
       (sha256
        (base32 "12g5a1hzxjhi0i4mbh5k88da7s4b574ajx68nw67i2jv3damksbx"))))
    (build-system emacs-build-system)
    (home-page "https://github.com/remvee/redo-mode")
    (synopsis "Simple Emacs major-mode for the redo build system")
    (description
"@code{emacs-redo-mode} provides a simple Emacs major-mode for the redo
build system.")
    (license license:gpl3+)))

(define-public emacs-nice-defaults
  (package
    (name "emacs-nice-defaults")
    (version "0.2.1")
    (source
     (origin
       (method git-fetch)
       (uri
        (git-reference
         (url "https://git.sr.ht/~whereiseveryone/nice-defaults")
         (commit (string-append "v" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "0bkzbsm9knk9z2765798i1rnazzkmnw01cqpm2qg3jbm6lmr704m"))))
    (build-system emacs-build-system)
    (home-page "https://git.sr.ht/~whereiseveryone/nice-defaults")
    (synopsis "Nice defaults for Emacs")
    (description
"@code{emacs-nice-defaults} provides some nice defaults for Emacs.")
    (license license:gpl3+)))

(define-public emacs-meme
  (let ((commit "77b0f760e72e67b7d3d774bb6c01f302ba247369")
        (revision "0"))
    (package
      (name "emacs-meme")
      (version (git-version "0.1" revision commit))
      (source
       (origin
         (method git-fetch)
         (uri
          (git-reference
           (url "https://github.com/larsmagne/meme")
           (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "0nyndag4cjsqdmx9ajf5w65x7821mv4cvj1y88ij6dprl554pr0b"))))
      (build-system emacs-build-system)
      (propagated-inputs
        (list emacs-imgur-el))
      (home-page "https://github.com/larsmagne/meme")
      (synopsis "Emacs meme generator")
      (description 
"Emacs must have a meme generator.  Using a web browser seems so jejune.")
      (license license:gpl2+))))

(define-public emacs-imgur-el
  (let ((commit "02e0ce9fc3a8d5febd61246fc4e586004d4de610")
        (revision "0"))
    (package
      (name "emacs-imgur-el")
      (version (git-version "0.1" revision commit))
      (source
       (origin
         (method git-fetch)
         (uri
          (git-reference
           (url "https://github.com/larsmagne/imgur.el")
           (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "0lxi1riv5vl6dmva3rbz8a33mxm1h7vxd43ipdj0p1hirsa4nphh"))))
      (build-system emacs-build-system)
      (home-page "https://github.com/larsmagne/imgur.el")
      (synopsis "Simple library for uploading pictures to imgur")
      (description 
"@code{emacs-imgur-el} is a simple library for uploading pictures to imgur.")
      (license license:gpl2+))))

(define-public emacs-ii-mode
  (let ((commit "dec54c0e75e9477a3f4f667aa6c60364d567e660")
        (revision "0"))
    (package
      (name "emacs-ii-mode")
      (version (git-version "0.1" revision commit))
      (source
       (origin
         (method git-fetch)
         (uri
          (git-reference
           (url "https://github.com/krl/ii-mode")
           (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "0rppzaljwh9svzfav0xb0vjhvgcrq2axpn1vp7kbr4piyd9hq99h"))))
      (build-system emacs-build-system)
      (home-page "https://github.com/krl/ii-mode")
      (synopsis "Emacs mode for interacting with ii")
      (description 
"@code{emacs-ii-mode} is an Emacs mode for handling files created
by ii.  It can help you to stay logged in even through emacs restarts.
The model of using Emacs for interfaces to external programs, rather than
running them inside the elisp environment itself also seems more elegant. 
This allows for a much more detached use of irc, not having to keep
one buffer open for each channel, but still getting notified if someone
pings you.")
      (license license:gpl3+))))

(define-public emacs-fzf-el
  (let ((commit "e045e7ede6a3d5f792cd11efe5e83cf60d8081bb") (revision "0"))
    (package
      (name "emacs-fzf-el")
      (version (git-version "0.1" revision commit))
      (source (origin
                (method git-fetch)
                (uri (git-reference
                      (url "https://github.com/bling/fzf.el")
                      (commit commit)))
                (file-name (git-file-name name version))
                (sha256
                 (base32
                  "0y4abgwcb28dpnzqcl2dylymnkg1v91nrnpsrly0dp8bf0aiafrq"))))
      (build-system emacs-build-system)
      (inputs (list fzf))
      (home-page "https://github.com/bling/fzf.el")
      (synopsis "Front-end for fzf")
      (description "An @command{emacs} front-end for @command{fzf}.")
      (license license:gpl3+))))

(define-public emacs-acme-theme
  (let ((commit "7c408d111c5e451ecb8fdd5f76cf7d8074aec793")
        (revision "0"))
    (package
      (name "emacs-acme-theme")
      (version (git-version "0.1" revision commit))
      (source
       (origin
         (method git-fetch)
         (uri
          (git-reference
           (url "https://github.com/ianyepan/acme-emacs-theme")
           (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "16qxspzlf0bvw36ff4qnrn5p7mc5sf923ba0ar04cr87bfqgyak4"))))
      (build-system emacs-build-system)
      (home-page "https://github.com/ianyepan/acme-emacs-theme")
      (synopsis "Emacs theme inspired by Plan 9's Acme and Sam Editor")
      (description "An @command{emacs} theme with an old-school vibe inspired by
Plan 9 Acme & Sam")
      (license license:gpl3))))

(define-public emacs-worf
  (let ((commit "aab516cd0cae65796cce89b29691e95d18bec3ef")
        (revision "0"))
    (package
      (name "emacs-worf")
      (version (git-version "0.1" revision commit))
      (source
       (origin
         (method git-fetch)
         (uri
          (git-reference
           (url "https://github.com/abo-abo/worf")
           (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "1kiy00r01h05p5i2g0z5kv9dhk3hcbfhjc3gibcx7bspsjsnmn7q"))))
      (build-system emacs-build-system)
      (propagated-inputs
       `(("emacs-ace-link" ,emacs-ace-link)
         ("emacs-swiper" ,emacs-swiper)
         ("emacs-zoutline" ,emacs-zoutline)))
      (home-page "https://github.com/abo-abo/worf")
      (synopsis "vi-like bindings for org-mode")
      (description "GNU Emacs minor mode that provides vi-like bindings for org-mode.")
      (license license:gpl3))))

(define-public emacs-webkit
  (let ((commit "96a4850676b74ffa55b52ff8e9824f7537df6a47")
        (revision "0")
        (version "0.09"))
  (package
   (name "emacs-webkit")
   (version (git-version version revision commit))
   (source
    (origin
      (method git-fetch)
      (uri (git-reference
            (url "https://github.com/akirakyle/emacs-webkit")
            (commit commit)))
      (file-name (git-file-name name version))
      (sha256
       (base32 "0ifdngan6jhbz6p72igwvmz7lhmz7hl8ak5n7zjkvxmq05kxkc5a"))
;;; The snippet before (search-patches ...) is copied from nonguix:
;;; what didn't work: just putting it in /guixrus/patches
;;; NOTE: there are also channels where patches just lie in the rootdir
;;; TODO: How to find patches in channels/locally without this?
      ;;an unmerged commit; package doesn't build without
      (patches
       (parameterize
           ((%patch-path
             (map
              (lambda (directory)
                (string-append directory "/guixrus/packages/patches"))
              %load-path)))
         (search-patches "emacs-webkit-require-org-link.patch")))))
   (build-system emacs-build-system)
   (native-inputs (list pkg-config libtool gsettings-desktop-schemas))
   (inputs (list glib glib-networking webkitgtk-with-libsoup2
                 emacs-evil-collection gstreamer))
   (arguments
    `(#:emacs ,emacs-next
      ;; TODO most of these might actually be unneeded
      #:imported-modules
      (,@%gnu-build-system-modules
       ,@%emacs-build-system-modules
       (guix build gnu-build-system)
       (guix build emacs-build-system)
       (guix build emacs-utils))
      #:modules
      ((guix build gnu-build-system)
       (guix build emacs-build-system)
       (guix build emacs-utils)
       (guix build utils))
       #:phases
       (modify-phases %standard-phases
         (add-before 'install 'make-webkit-module
           (lambda* (#:key outputs #:allow-other-keys)
             (let ((out (assoc-ref outputs "out")))
               (setenv "CC" ,(cc-for-target))
               (setenv "PREFIX" out)
               (setenv "HOME" (getcwd))
               (invoke "make" "all"))
             #t))
         (replace 'install
           (lambda* (#:key outputs #:allow-other-keys)
             (let ((install (assoc-ref %standard-phases 'install)))
               (install
                #:outputs outputs
                #:include (cons* "\\.so$" "\\.css$" "\\.js$"
                                 %default-include))))))))
;;; some other packages that install dynamic modules also install them in /lib
;;; TODO: include this, change to symlink?
         ;;   (add-after 'build 'install-dynamic-module
         ;;     (lambda*
         ;;         (#:key outputs #:allow-other-keys)
         ;;       ;; Move the file into /lib.
         ;;       (install-file
         ;;        "webkit-module.so"
         ;;        (string-append (assoc-ref outputs "out") "/lib")) #t)))
   (synopsis "Use the webkit browser engine from emacs")
   (description "@{code}Emacs-webkit comes with a dynamic module for
webkitgtk in emacs, making it possible to be more powerful/flexible
then the traditional xwidget variant")
   (home-page "https://github.com/akirakyle/emacs-webkit")
   (license license:expat))))

(define-public emacs-orca
  (let ((commit "47c03af0c1df2b679d800f3708d675a4c2a3e722")
        (revision "0"))
    (package
      (name "emacs-orca")
      (version (git-version "0.1" revision commit))
      (source
       (origin
         (method git-fetch)
         (uri
          (git-reference
           (url "https://github.com/abo-abo/orca")
           (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "0dah1wb9fyixwza8h2bc2vzps4zd9y9g97yhrm2vjvddabzsyq3a"))))
      (build-system emacs-build-system)
      (home-page "https://github.com/abo-abo/orca")
      (synopsis "My org-capture and org-protocol setup")
      (description "My org-capture and org-protocol setup.")
      (license license:gpl3))))

(define-public emacs-org-fu
  (let ((commit "c50abcef7de96508033dfda734c9bcb3faa85a1c")
        (revision "0"))
    (package
      (name "emacs-org-fu")
      (version (git-version "0.1" revision commit))
      (source
       (origin
         (method git-fetch)
         (uri
          (git-reference
           (url "https://github.com/abo-abo/org-fu")
           (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "1iqz0jfwvwhjv8zdby8w9dlydp0zhqrsf5mfd0sf6v3sw1dd5jzf"))))
      (build-system emacs-build-system)
      (propagated-inputs
       `(("emacs-orca" ,emacs-orca)))
      (home-page "https://github.com/abo-abo/org-fu")
      (synopsis "My org-capture and org-protocol setup")
      (description "My org-capture and org-protocol setup.")
      (license license:gpl3))))

(define-public emacs-dired-guess
  (let ((commit "cf1d5469b8067371776095a52941058c35a60303")
        (revision "0"))
    (package
      (name "emacs-dired-guess")
      (version (git-version "0.1" revision commit))
      (source
       (origin
         (method git-fetch)
         (uri
          (git-reference
           (url "https://github.com/abo-abo/dired-guess")
           (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "1ayga4ydinr5lpcjl7mlqwm47af33w8583d0ndyqmrwbli656j6z"))))
      (build-system emacs-build-system)
      (home-page "https://github.com/abo-abo/dired-guess")
      (synopsis "Emacs Dired Guess")
      (description "Associate file extensions with programs that can open them
for dired.")
      (license license:gpl3))))

(define-public emacs-pomodoro-el
  (let ((commit "ed888b24d0b89a5dec6f5278b1064c530c827321")
        (revision "0"))
    (package
      (name "emacs-pomodoro-el")
      (version (git-version "0.1" revision commit))
      (source
       (origin
         (method git-fetch)
         (uri
          (git-reference
           (url "https://github.com/baudtack/pomodoro.el")
           (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "0yv1339q5s31wxw8y34pb09b0rlvz9m3gzqb4dc1q8ncq8xb8wl5"))))
      (build-system emacs-build-system)
      (home-page "https://github.com/baudtack/pomodoro.el")
      (synopsis "Emacs pomodoro timer")
      (description "An @command{emacs} emacs timer for the
@uref{http://www.pomodorotechnique.com/ pomodoro technique}.")
      (license license:gpl3))))

(define-public emacs-guix-packaging
  (let ((commit "d843088252467db3c8a09de40ae9a62050196a0e"))
    (package
      (name "emacs-guix-packaging")
      (version "1.0")
      (source
       (origin
         (method git-fetch)
         (uri
          (git-reference
           (url "https://github.com/ryanprior/emacs-guix-packaging")
           (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "1hh1l10phcsai98pbhnxr9572vwg5al2v0g0fhz41sv486fi93hi"))))
      (build-system emacs-build-system)
      (propagated-inputs
       (list
        emacs-dash
        emacs-yasnippet))
      (home-page "https://github.com/ryanprior/emacs-guix-packaging")
      (synopsis "Tools for writing and maintaining Guix packages")
      (description "@command{guix-packaging} provides tools to create and
maintain Guix packages quickly and with confidence.")
      (license license:gpl3+))))

(define-public emacs-ranger
  (let ((commit "2498519cb21dcd5791d240607a72a204d1761668"))
    (package
      (name "emacs-ranger")
      (version "1.0")
      (source
       (origin
         (method git-fetch)
         (uri
          (git-reference
           (url "https://github.com/ralesi/ranger.el")
           (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "1wzshhg6dchny9drm8lf8sw4s24icgyb4my58xvhm55dp4zl5p3b"))))
      (build-system emacs-build-system)
      (home-page "https://github.com/ralesi/ranger.el")
      (synopsis "Bringing the goodness of ranger to dired!")
      (description "@command{emacs-ranger} is a minor mode that runs within
dired, it emulates many of ranger's features.  This minor mode shows a stack of
parent directories, and updates the parent buffers, while you're navigating the
file system.  The preview window takes some of the ideas from Peep-Dired, to
display previews for the selected files, in the primary dired buffer.")
      (license license:gpl3+))))

(define-public emacs-dirvish
  (let ((commit "82819c2e548d64a98c592c930c7c3330210206dc")
        (revision "0"))
    (package
      (name "emacs-dirvish")
      (version (git-version "0.1" revision commit))
      (source
       (origin
         (method git-fetch)
         (uri
          (git-reference
           (url "https://github.com/alexluigit/dirvish")
           (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "0ys9mbsl8mbi2bgw9920bjxscjydcs2w0r8lh1fm1k2mz2ylxnfw"))))
      (build-system emacs-build-system)
      (propagated-inputs 
       (list
        emacs-posframe))
      (inputs 
       (list
        exa))
      (arguments
       `(#:phases
         (modify-phases %standard-phases
           (add-after 'unpack 'patch-exa-executable
             (lambda* (#:key inputs #:allow-other-keys)
               (let ((exa (assoc-ref inputs "exa")))
                 ;; .el is read-only in git.
                 (make-file-writable "dirvish-preview.el")
                 ;; Specify the absolute file names of exa so that everything
                 ;; works out-of-the-box.
                 (substitute* "dirvish-preview.el"
                   (("exa")
                    (string-append exa "/bin/exa")))))))))
      (home-page "https://github.com/alexluigit/dirvish")
      (synopsis "Dired can be a nice file manager")
      (description "@code{emacs-dirvish} empowers dired by giving it a
modern UI in a unintrusive way.  Emacs users deserve a file manager better than
those popular ones on terminal such as @code{ranger}, @code{vifm}, @code{lf}
since Emacs is not limited to a terminal.")
      (license license:gpl3+))))

(define-public emacs-eshell-vterm
  (let ((commit "f2212dbfa51aa4b67efda55304b2b3811e8e0625")
        (version "0.1")
        (revision "0"))
    (package
      (name "emacs-eshell-vterm")
      (version (git-version version revision commit))
      (source
        (origin 
          (method git-fetch)
          (uri 
            (git-reference
              (url "https://github.com/iostapyshyn/eshell-vterm")
              (commit commit)))
          (sha256
            (base32 "02q1iyh77m7vg9cip7c9wzpiggnsbhhicfs5rqzpc5d7n70gbk2p"))))
      (propagated-inputs 
        (list emacs-vterm))   
      (build-system emacs-build-system)
      (home-page "https://github.com/iostapyshyn/eshell-vterm")
      (synopsis "Use vterm in e-shell")
      (description
"An Emacs global minor mode allowing eshell to use vterm for visual
commands.")
      (license license:expat))))

(define-public emacs-peut-publier
  (let ((commit "25b35afc33e32d1c17442547e122b154eb6005af")
        (revision "0"))
    (package
      (name "emacs-peut-publier")
      (version (git-version "0.1" revision commit))
      (source
       (origin
         (method git-fetch)
         (uri
          (git-reference
           (url "https://github.com/excalamus/peut-publier")
           (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "0670rrn3ldrf7kzfpcm92z4nbc8knwwmxqv0cxn3drxw5ai6f339"))))
      (build-system emacs-build-system)
      (home-page "https://github.com/excalamus/peut-publier")
      (synopsis "Peut-publier enables users to publish")
      (description
"@code{emacs-peut-publier} is a static website generator for Emacs. It's
designed to be customized and extended using Emacs Lisp.  Websites are
built from lightweight markup files. The default site is an Org mode
blog.")
      (license license:gpl3+))))

(define-public emacs-trident-mode
  (let ((commit "109a1bc10bd0c4b47679a6ca5c4cd27c7c8d4ccb")
        (revision "0"))
    (package
      (name "emacs-trident-mode")
      (version (git-version "0.1" revision commit))
      (source
       (origin
         (method git-fetch)
         (uri
          (git-reference
           (url "https://github.com/johnmastro/trident-mode.el")
           (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "0blbxjaddzhkvzlys46yrzszywmyjkmfhwks52v4laya76rgxm45"))))
      (build-system emacs-build-system)
      (propagated-inputs
        (list emacs-skewer-mode emacs-dash emacs-slime))
      (home-page "https://github.com/johnmastro/trident-mode.el")
      (synopsis "Emacs minor mode for live Parenscript interaction")
      (description
"@code{emacs-trident-mode} is an @code{emacs} minor mode and collection
of commands for working with Parenscript code in SLIME and sending it to
the browser via Skewer.  The goal is to create an environment for hacking
Parenscript which fits as naturally as possible into the Lisp style of
interactive development.")
      (license license:unlicense))))

(define-public emacs-wgsl-mode
  (let ((commit "eaf56e308d233cbc7bbafee2678765b3cf311dc9")
        (revision "0"))
    (package
      (name "emacs-wgsl-mode")
      (version (git-version "0.1" revision commit))
      (source
       (origin
         (method git-fetch)
         (uri
          (git-reference
           (url "https://github.com/KeenS/wgsl-mode.el")
           (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "1zn4dhnlqy1p5cbxjgfmkckpbqr34r5ka2rwl7cfg7yc56j3hnx6"))))
      (build-system emacs-build-system)
      (home-page "https://github.com/KeenS/wgsl-mode.el")
      (synopsis "Emacs major mode for WebGPU Shadring Language")
      (description
"@code{emacs-wgsl-mode} is an @code{emacs} major mode for WebGPU Shading
Language.")
      (license license:gpl3+))))

(define-public emacs-awesome-tray
  (let ((commit "86fe7b067f0f91b3902418f1d677630fe999fc62")
        (revision "0"))
    (package
      (name "emacs-awesome-tray")
      (version (git-version "0.1" revision commit))
      (source
       (origin
         (method git-fetch)
         (uri
          (git-reference
           (url "https://github.com/manateelazycat/awesome-tray")
           (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "1b07vq37idnm6yxq9c6gknw0bi6wk3yrpwi64w6l9lv1b0qq77af"))))
      (build-system emacs-build-system)
      (home-page "https://github.com/manateelazycat/awesome-tray")
      (synopsis "An awesome tray for emacs")
      (description
"Hide mode-line, display necessary information at right of minibuffer.")
      (license license:gpl3+))))

(define-public emacs-sink-el
  (let ((commit "d64ee23df974851352c48d17eeeb9376c40779a9")
        (revision "0"))
    (package
      (name "emacs-sink-el")
      (version (git-version "0.1" revision commit))
      (source
       (origin
         (method git-fetch)
         (uri
          (git-reference
           (url "https://github.com/alcah/sink.el")
           (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "1bshm19cbsjn100nfjz2anmpgp9yml88701nfdal9a2b7g6dr5x9"))))
      (build-system emacs-build-system)
      (home-page "https://github.com/alcah/sink.el")
      (synopsis "Receive messages from Plan9's plumber in Emacs")
      (description
"@code{sink.el} provides a global minor mode allowing Emacs to receive and
respond to messages from the Plan9 plumber via its ports interface.")
      (license license:unlicense))))

(define-public emacs-tmd-el
  (let ((commit "c68302c3b72cc4082640e7b2248dc6ccf13747b9")
        (revision "0"))
    (package
      (name "emacs-tmd-el")
      (version (git-version "20201108" revision commit))
      (source
       (origin
         (method git-fetch)
         (uri
          (git-reference
           (url "https://github.com/omar-polo/tmd.el")
           (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "0pgb55lrgrzc81dp8680hibpav070ry9z80hhh30x4ngmq3ipsw0"))))
      (build-system emacs-build-system)
      (home-page "https://github.com/omar-polo/tmd.el")
      (synopsis "Most dangerous minor mode")
      (description
"The Most Dangerous Minor Mode, as the name says, is a particularly
dangerous Emacs minor mode.  It’s inspired by the website “the most
dangerous writing app”.  If you don’t type at least one key every
tmd-timeout, (by default 5 seconds) the whole buffer will be deleted
(the narrowing will be respected).")
      (license license:expat))))

(define-public emacs-why-this
  (let ((commit "3497115c2b3cc6f288770d3ae61ff1079ecc3b1e")
        (revision "0"))
    (package
      (name "emacs-why-this")
      (version (git-version "20220222" revision commit))
      (source
       (origin
         (method git-fetch)
         (uri
          (git-reference
           (url "https://github.com/emacsmirror/why-this")
           (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "1xcq6r25j60x2zrv1hn5whzq9aydjya5a3k25k6nz8hmc9cdp9dm"))))
      (build-system emacs-build-system)
      (home-page "https://codeberg.org/akib/emacs-why-this")
      (synopsis "Why is this line here? Ask version control")
      (description
"@code{emacs-why-this} shows why the current line was changed on the
right side of line.  It can also render editing history as heat maps.")
      (license license:gpl3+))))

(define-public emacs-catppuccin-theme
  (let ((commit "04df97cdb49bc87478b98530bc1cfb1958109770")
        (revision "0"))
    (package
      (name "emacs-catppuccin-theme")
      (version (git-version "20220225" revision commit))
      (source
       (origin
         (method git-fetch)
         (uri
          (git-reference
           (url "https://github.com/pspiagicw/catppuccin-emacs")
           (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "047jbj5snjvjcb4ir0cylp3lh6kdxjwvd8bm28xjsxxwvig879bj"))))
      (build-system emacs-build-system)
      (home-page "https://github.com/pspiagicw/catppuccin-emacs")
      (synopsis "Catppuccin for Emacs")
      (description
"@code{emacs-catppuccin-theme} is a catppuccin theme for Emacs.")
      (license license:expat))))

(define-public emacs-sam-el
  (let ((commit "5d5ab9aaa09664ecd397b535460f9d65595f507f")
        (revision "0"))
    (package
      (name "emacs-sam-el")
      (version (git-version "20210421" revision commit))
      (source
       (origin
         (method git-fetch)
         (uri
          (git-reference
           (url "https://github.com/omar-polo/sam.el")
           (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "0ba8jcd3x1qd6vflhd80dcipns5jplay0dsglbppf3mcrswcrlp3"))))
      (build-system emacs-build-system)
      (arguments
       `(#:tests? #f)) ;; fixme
      (home-page "https://github.com/omar-polo/sam.el")
      (synopsis "Sam emulation for Emacs")
      (description
"@code{emacs-sam-el} provides structural regular expressions for Emacs.")
      (license license:isc))))

(define-public emacs-affe
  (package
    (name "emacs-affe")
    (version "0.4")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
       (url "https://github.com/minad/affe")
       (commit version)))
       (file-name (git-file-name name version))
       (sha256
    (base32 "01hmhg3smjni8gpyap4wmqb4ax6dxfn6jnwlpdp76imbvb9m26ma"))))
    (build-system emacs-build-system)
    (inputs
     (list emacs-consult))
    (home-page "https://github.com/minad/affe")
    (synopsis "Asynchronous Fuzzy Finder for Emacs")
    (description
"This package provides an asynchronous fuzzy finder similar to the @code{fzf}
command-line fuzzy finder, written in pure Elisp.")
    (license license:gpl3+)))

(define-public emacs-consult-projectile
  (let ((commit "98dd9a0ad511f998933a69c8c4d5488f53b9c4d4") (revision "0")
        (version "0.5"))
    (package
      (name "emacs-consult-projectile")
      (version (git-version version revision commit))
      (source (origin
                (method git-fetch)
                (uri (git-reference
                      (url "https://gitlab.com/OlMon/consult-projectile")
                      (commit commit)))
                (file-name (git-file-name name version))
                (sha256
                 (base32
                  "1kn45cv10hb4igrw5h874mnm36khd6wssfy7wmslfi4ab56jwjyg"))))
      (build-system emacs-build-system)
      (inputs
        (list emacs-projectile 
              emacs-consult))
      (home-page "https://gitlab.com/OlMon/consult-projectile")
      (synopsis "Incorporates projectile into consult")
      (description
"A multiview for displaying open buffers, files and directories accociated
with a project.  When no project is open in the current buffer display
a list of known project and select a file from the selected project.")
      (license license:gpl3+))))

(define-public emacs-ednc
  (let ((commit "bf588399e241742962613ce2a96f0cffc86417f6")
	(revision "0")
	(version "0.1"))
    (package
     (name "emacs-ednc")
     (version (git-version version revision commit))
     (source
      (origin
       (method git-fetch)
       (uri (git-reference
	     (url "https://github.com/sinic/ednc")
	     (commit commit)))
       (file-name (git-file-name name version))
       (sha256
	(base32 "0y0rxiqa1vxz4ylhagr9mnh1x4lghg1md3k1pqzciq9gnqgl3fpn"))))
     (build-system emacs-build-system)
     (home-page "https://github.com/sinic/ednc")
     (synopsis "The Emacs Desktop Notification Center ")
     (description "The Emacs Desktop Notification Center (EDNC) is an Emacs package written in pure Lisp that implements a Desktop Notifications service according to the freedesktop.org specification.")
     (license license:gpl3+))))

(define-public emacs-guess-language
  (let ((commit "e6b78ed2a36bf5debd3d07ffd99a5a8ca60609d6")
	(revision "0")
	(version "0.0.1"))
    (package
     (name "emacs-guess-language")
     (version (git-version version revision commit))
     (source
      (origin
       (method git-fetch)
       (uri (git-reference
	     (url "https://github.com/tmalsburg/guess-language.el")
	     (commit commit)))
       (file-name (git-file-name name version))
       (sha256
	(base32 "0g0vdz42s6hns249lfxcha7l7ihqpyay3n5iijziwrbrrhqi6rx6"))))
     (build-system emacs-build-system)
     (propagated-inputs (list emacs-nadvice))
     (home-page "https://github.com/tmalsburg/guess-language.el")
     (synopsis "Robust automatic language detection")
     (description
      "@code{emacs-guess-language} detects the language of what you’re typing. Automatically switches the spell checker and typo-mode.")
     (license license:gpl3+))))

(define-public emacs-txl
  (let ((commit "5acbd900c4a7e7a1b39798bcc68c1d9024055a1f")
	(revision "0")
	(version "0.0.2"))
    (package
     (name "emacs-txl")
     (version (git-version version revision commit))
     (source
      (origin
       (method git-fetch)
       (uri (git-reference
	     (url "https://github.com/tmalsburg/txl.el")
	     (commit commit)))
       (file-name (git-file-name name version))
       (sha256
	(base32 "1yn1kn2zpr3p355136wxy7g1xqhywxg0jy5y2pc7l3nx1lqg1x24"))))
     (build-system emacs-build-system)
     (propagated-inputs (list emacs-request emacs-guess-language))
     (home-page "https://github.com/tmalsburg/txl.el")
     (synopsis "Provides machine translation through DeepL")
     (description synopsis)
     (license license:gpl3+))))

(define-public emacs-helm-dired-history
  (package
    (name "emacs-helm-dired-history")
    (version "1.3")
    (source
     (origin
       (method git-fetch)
       (uri
        (git-reference
         (url "https://github.com/jixiuf/helm-dired-history")
         (commit (string-append "v" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "1bqavj5ljr350dckyf39i9plkb0rbhyd17ka94n2g6daapgpq0x6"))))
    (build-system emacs-build-system)
    (propagated-inputs
      (list emacs-helm))
    (home-page "https://github.com/remvee/helm-dired-history")
    (synopsis "Show dired histories you have visited in Emacs")
    (description
"@code{emacs-helm-dired-history} shows dired histories you have visited
in Emacs.")
    (license license:gpl3+)))

(define-public emacs-wrap-region
  (let ((commit "fbae9b0f106187af19823f1a6260b5c68b7252e6")
        (revision "0"))
    (package
      (name "emacs-wrap-region")
      (version (git-version "0.1" revision commit))
      (source
       (origin
         (method git-fetch)
         (uri
          (git-reference
           (url "https://github.com/rejeep/wrap-region.el")
           (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "1k5q925igdv5lnpbmy0c2f0j3rj7yh4l6bxbd61g9lcnyl0j3ym9"))))
      (build-system emacs-build-system)
      (propagated-inputs
        (list emacs-dash))
      (home-page "https://github.com/rejeep/wrap-region.el")
      (synopsis "Emacs minor mode to wrap region with tag or punctuations")
      (description
"@code{emacs-wrap-region} is a minor mode for Emacs that wraps a region
with punctuations.  For tagged markup modes, such as HTML and XML,
it wraps with tags.")
      (license license:gpl3+))))

(define-public emacs-hl-line-plus
  (let ((commit "55b0fac35af9f7078cca10f47fcdedb628d92ca5")
        (revision "0"))
    (package
      (name "emacs-hl-line-plus")
      (version (git-version "0.1" revision commit))
      ;; https://emacs.stackexchange.com/questions/51666/why-is-hl-line-el-not-a-package
      (source
       (origin
         (method git-fetch)
         (uri
          (git-reference
           (url "https://github.com/emacsmirror/hl-line-plus")
           (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "0p6a3kq6v3jwaivj7rda80wfgr0jqg0b93l14qc5mdxjfknwy9ym"))))
      (build-system emacs-build-system)
      (propagated-inputs
        (list emacs-dash))
      (home-page "https://github.com/emacsmirror/hl-line-plus.el")
      (synopsis "Extensions to hl-line.el")
      (description
"@code{emacs-hl-line-plus} provides exntensions to @code{hl-line.el}.")
      (license license:gpl3+))))

(define-public emacs-impostman
  (let ((commit "5b122f3d5a3421aa2d89bdc9dc4aafaf19cf85d4")
        (revision "0"))
    (package
      (name "emacs-impostman")
      (version (git-version "0.1" revision commit))
      (source
       (origin
         (method git-fetch)
         (uri
          (git-reference
           (url "https://github.com/flashcode/impostman")
           (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "095g54cxicd5ysxpw2zaw4i92yxmr3inwacbla34aa0l62lqy5ig"))))
      (build-system emacs-build-system)
      (home-page "https://github.com/flashcode/impostman.el")
      (synopsis "Import of Postman collections in Emacs")
      (description
"@code{emacs-impostman} provides utilities for importing Postman
collections and environments.")
      (license license:gpl3+))))

(define-public emacs-anaphora-anywhere
  (let ((commit "9d68e046f14649397e43fbe47640c1eadc8f8698")
        (revision "0"))
    (package
      (name "emacs-anaphora-anywhere")
      (version (git-version "0.1" revision commit))
      (source
       (origin
         (method git-fetch)
         (uri
          (git-reference
           (url "https://github.com/jphmrst/anaphora-anywhere")
           (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "111jkhgi40fhrqwvcbbakp5gdyiqpz3kqbbkwzv7bgp6l4j86s7m"))))
      (build-system emacs-build-system)
      (home-page "https://github.com/flashcode/anaphora-anywhere.el")
      (synopsis "Anaphoric references in Emacs Lisp")
      (description
"@code{emacs-anaphora-anywhere} provides anaphoric references in emacs lisp.")
      (license license:gpl3+))))

(define-public emacs-pyimport
  (let ((commit "a6f63cf7ed93f0c0f7c207e6595813966f8852b9")
        (revision "0"))
    (package
      (name "emacs-pyimport")
      (version (git-version "1.1" revision commit))
      (source
       (origin
         (method git-fetch)
         (uri
          (git-reference
           (url "https://github.com/Wilfred/pyimport")
           (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "1q5gqhvh4zq5dy8vns694warcz48j1hdnxg16sjck4gsi9xivbvs"))))
      (build-system emacs-build-system)
      (inputs
        (list python-pyflakes))
      (propagated-inputs
        (list emacs-dash emacs-s emacs-shut-up))
      (arguments
        (list #:phases
              #~(modify-phases %standard-phases
                  (add-after 'unpack 'patch-pyflakes-executable
                    (lambda* (#:key inputs #:allow-other-keys)
                      (let ((python-pyflakes (assoc-ref inputs "python-pyflakes")))
                        (make-file-writable "pyimport.el")
                        (substitute* "pyimport.el"
                          (("\"pyflakes")
                           (string-append "\"" python-pyflakes "/bin/pyflakes")))))))))
      (home-page "https://github.com/Wilfred/pyimport")
      (synopsis "Manage Python imports from Emacs")
      (description
"@code{emacs-pyimport} manages python imports from Emacs via @code{python-pyflakes}.")
      (license license:gpl3+)))) ; License is in pyimport.el

(define-public emacs-pippel
  (let ((commit "682a40af266f395cf39862ad0bfb30152ddee204")
        (revision "0"))
    (package
      (name "emacs-pippel")
      (version (git-version "1.1" revision commit))
      (source
       (origin
         (method git-fetch)
         (uri
          (git-reference
           (url "https://github.com/arifer612/pippel")
           (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "1gb7nf047gm57jdggj49ri46hgz8gphqy58abniqlqxjcx9zp4z7"))))
      (build-system emacs-build-system)
      (propagated-inputs
        (list python-pip emacs-dash emacs-s))
      (home-page "https://github.com/arifer612/pippel")
      (synopsis "Emacs frontend to python package manager pip")
      (description
"@code{emacs-pippel} is an Emacs frontend for the Python package manager pip.")
      (license license:gpl3+)))) ; License is in pyimport.el

(define-public emacs-importmagic
  (let ((commit "701dfcca5f3ab42be0f26a8d381d7116c79be850")
        (revision "0"))
    (package
      (name "emacs-importmagic")
      (version (git-version "1.0" revision commit))
      (source
       (origin
         (method git-fetch)
         (uri
          (git-reference
           (url "https://github.com/anachronic/importmagic.el")
           (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "035830aizamh4c8hpnmfrbz9v9gy23d3nx0dv366l3q8mrh36l44"))))
      (build-system emacs-build-system)
      (propagated-inputs
        (list python-importmagic
              python-sexpdata
              emacs-epc
              emacs-f
              emacs-dash
              emacs-s))
      (home-page "https://github.com/anachronic/importmagic.el")
      (synopsis "Emacs package that resolves unimported Python symbols")
      (description
"@code{emacs-importmagic} is an Emacs package inspired by the
@code{python-importmagic} library and PyCharm's ability to suggest
imports for unresolved symbols.")
      (license license:gpl3+))))

(define-public emacs-helm-pydoc
  (let ((commit "85480a29b56dacde425655bc8f5a597c785afdf5")
        (revision "0"))
    (package
      (name "emacs-helm-pydoc")
      (version (git-version "1.0" revision commit))
      (source
       (origin
         (method git-fetch)
         (uri
          (git-reference
           (url "https://github.com/emacsorphanage/helm-pydoc")
           (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "1wrs2d84xzjnsmw255bmnd1wcpwd36m0vyni48aa7661d4dh10x3"))))
      (build-system emacs-build-system)
      (propagated-inputs
        (list emacs-helm))
      (inputs
        (list python))
      (arguments
        (list #:phases
              #~(modify-phases %standard-phases
                  (add-after 'unpack 'patch-python-executable
                    (lambda* (#:key inputs #:allow-other-keys)
                      (let ((python (assoc-ref inputs "python")))
                        (make-file-writable "helm-pydoc.el")
                        (substitute* "helm-pydoc.el"
                          (("/bin/python")
                           (string-append python "/bin/python")))))))))
      (home-page "https://github.com/emacsorphanage/helm-pydoc")
      (synopsis "pydoc with helm interface")
      (description
"@code{emacs-helm-pydoc} provides a pydoc helm interface.")
      (license license:gpl3+))))

(define-public emacs-org-cliplink
  (let ((commit "13e0940b65d22bec34e2de4bc8cba1412a7abfbc")
        (revision "0"))
    (package
      (name "emacs-org-cliplink")
      (version (git-version "20201126" revision commit))
      (source
       (origin
         (method git-fetch)
         (uri
          (git-reference
           (url "https://github.com/rexim/org-cliplink")
           (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "1avyiw8vlv4n1r7zqvc6wjlsz7jl2pqaprzpm782gzp0c999pssl"))))
      (build-system emacs-build-system)
;;      (inputs 
;;        (list curl)) ; curl is optional. Add it?
      (home-page "https://github.com/rexim/org-cliplink/")
      (synopsis "Insert org-mode links from clipboard")
      (description
"@code{emacs-org-cliplink} provides a simple command that takes a URL
from the clipboard and inserts an org-mode link with a title of a page
found by the URL into the current buffer.")
      (license license:expat))))

(define-public emacs-vline-mode
  (package
    (name "emacs-vline-mode")
    (version "1.11")
    (source
     (origin
       (method git-fetch)
       (uri
        (git-reference
         (url "https://github.com/EricCrosson/vline-mode")
         (commit version)))
       (file-name (git-file-name name version))
       (sha256
        (base32 "1hrdi5qlwlyp3z1yps8xfiwd9xk9xs3l4vb8m2jfwh2icgp93xlk"))))
    (build-system emacs-build-system)
    (home-page "https://github.com/EricCrosson/vline-mode/")
    (synopsis "Simple Emacs major-mode for the redo build system")
    (description
"@code{emacs-vline-mode} provides a simple Emacs major-mode for the redo
build system.")
    (license license:gpl2+)))

(define-public emacs-lin
  (package
    (name "emacs-lin")
    (version "0.3.0")
    (source
     (origin
       (method git-fetch)
       (uri
        (git-reference
         (url "https://git.sr.ht/~protesilaos/lin")
         (commit version)))
       (file-name (git-file-name name version))
       (sha256
        (base32 "1w1mli2wrxbnwagn3rx5ygslmzlri3drm74nqgwpl4pwh66xi98a"))))
    (build-system emacs-build-system)
    (home-page "https://protesilaos.com/emacs/lin")
    (synopsis "Lin is a stylistic enhancement for Emacs’ built-in hl-line-mode")
    (description
"@code{emacs-lin} is a stylistic enhancement for Emacs’ built-in
hl-line-mode.  It remaps the hl-line face (or equivalent) buffer-locally
to a style that is optimal for major modes where line selection is the
primary mode of interaction.")
    (license license:gpl3+)))

(define-public emacs-dumbparens
  (let ((commit "18b668772f25e5f7b62c0a000b8169eaf7515057")
        (revision "0"))
    (package
      (name "emacs-dumbparens")
      (version (git-version "0" revision commit))
      (source
       (origin
         (method git-fetch)
         (uri
          (git-reference
           (url "https://github.com/raxod502/dumbparens")
           (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "0xv2yzjzq2450z007jppf86knnwzb2s3sxvqyk1yp6qs9mgrmnyp"))))
      (build-system emacs-build-system)
      (home-page "https://github.com/raxod502/dumbparens/")
      (synopsis "Minor mode that provides improvements on smartparens")
      (description
"@code{emacs-dumbparens} is a minor mode for Emacs that deals with parens
pairs and doesn't try to be smart about it.")
      (license license:expat))))

(define-public emacs-nano-theme
  (let ((commit "ceeffd29cc7d55d4089ad33399299decf34b57c5")
        (revision "0"))
    (package
      (name "emacs-nano-theme")
      (version (git-version "20220201" revision commit))
      (source
       (origin
         (method git-fetch)
         (uri
          (git-reference
           (url "https://github.com/rougier/nano-theme")
           (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "0smax71w4h1jvl163bx6a44a82mk3grwcc98sk6z82rql98kk65c"))))
      (build-system emacs-build-system)
      (home-page "https://github.com/rougier/nano-theme/")
      (synopsis "GNU Emacs NANO Theme")
      (description
"@code{emacs-nano-theme} provides a consistent theme for GNU Emacs.")
      (license license:gpl3+))))

(define-public emacs-straight-el
  (let ((commit "af5437f2afd00936c883124d6d3098721c2d306c")
        (revision "0"))
    (package
      (name "emacs-straight-el")
      (version (git-version "0" revision commit))
      (source
       (origin
         (method git-fetch)
         (uri
          (git-reference
           (url "https://github.com/raxod502/straight.el")
           (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "1mpaq373d6yl8yaqmdg634lm3vwnz0xhzcvhm85kmqk36pkpj7ij"))))
      (build-system emacs-build-system)
      (arguments
        (list #:phases
              #~(modify-phases %standard-phases
                  (add-after 'unpack 'patch-git-executable
                    (lambda* (#:key inputs #:allow-other-keys)
                        (make-file-writable "straight.el")
                        (substitute* "straight.el"
                          (("\"git\"")
                           (string-append "\""
                                          (search-input-file inputs "/bin/git") 
                                          "\""))))))))
      (inputs
        (list git))
      (propagated-inputs
        (list emacs-magit))
      (home-page "https://github.com/raxod502/straight.el/")
      (synopsis "Purely functional package manager for the Emacs hacker")
      (description
"@code{emacs-straight-el} is a next-generation, purely functional package
manager for the Emacs hacker.")
      (license license:expat))))

(define-public emacs-corfu-popup
  (let ((commit "e5c70351905b23f4913e00b521e8d982d89d04c5")
        (revision "0"))
    (package
      (name "emacs-corfu-popup")
      (version (git-version "0" revision commit))
      (source
       (origin
         (method git-fetch)
         (uri
          (git-reference
           (url "https://codeberg.org/akib/emacs-corfu-popup")
           (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "0fq8hjd9h2qz2f7fv5j6qwdyq4bb0xpngbmlhdbyx21qrzr8vm3g"))))
      (build-system emacs-build-system)
      (propagated-inputs
        (list emacs-corfu emacs-popon))
      (home-page "https://codeberg.org/akib/emacs-corfu-popup/")
      (synopsis "Corfu popup in terminal")
      (description
"@code{emacs-corfu} uses child frames to display candidates. This makes
it unusable in the terminal. @code{emacs-corfu-popup} replaces that with
popup/popon, which works everywhere. Use @code{M-x corfu-popup-mode}
to enable. You'll probably want to enable it only in the terminal.")
      (license license:gpl3+))))

(define-public emacs-popon
  (let ((commit "cbcfb8d978ff0ed371366231df21fe388edb052f")
        (revision "0"))
    (package
      (name "emacs-popon")
      (version (git-version "0" revision commit))
      (source
       (origin
         (method git-fetch)
         (uri
          (git-reference
           (url "https://codeberg.org/akib/emacs-popon")
           (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "19z64xfh79zkr6xmdplksl55n4yr8c194ypsjyp66q4wg2wz3pz0"))))
      (build-system emacs-build-system)
      (home-page "https://codeberg.org/akib/emacs-popon/")
      (synopsis "Pop floating text on a window")
      (description
"@code{emacs-popon} allows you to pop text on a window, what we call
a popon. Popons are window-local and sticky, they don't move while
scrolling, and they even don't go away when switching buffer, but you
can bind a popon to a specific buffer to only show on that buffer.")
      (license license:gpl3+))))