-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.html
2333 lines (2104 loc) · 145 KB
/
config.html
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
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2022-07-26 Tue 15:07 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Doom Emacs Configuration</title>
<meta name="author" content="jsravn" />
<meta name="generator" content="Org Mode" />
<style>
#content { max-width: 60em; margin: auto; }
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #e6e6e6;
border-radius: 3px;
background-color: #f2f2f2;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: auto;
}
pre.src:before {
display: none;
position: absolute;
top: -8px;
right: 12px;
padding: 3px;
color: #555;
background-color: #f2f2f299;
}
pre.src:hover:before { display: inline; margin-top: 14px;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-authinfo::before { content: 'Authinfo'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { }
</style>
<link rel='shortcut icon' type='image/png' href='https://www.gnu.org/software/emacs/favicon.png'>
<!––tec/custom-head-start-->
<style type="text/css">
:root {
--theme-bg: #282c34;
--theme-bg-alt: #21242b;
--theme-base0: #1B2229;
--theme-base1: #1c1f24;
--theme-base2: #202328;
--theme-base3: #23272e;
--theme-base4: #3f444a;
--theme-base5: #5B6268;
--theme-base6: #73797e;
--theme-base7: #9ca0a4;
--theme-base8: #DFDFDF;
--theme-fg: #bbc2cf;
--theme-fg-alt: #5B6268;
--theme-grey: #3f444a;
--theme-red: #ff6c6b;
--theme-orange: #da8548;
--theme-green: #98be65;
--theme-teal: #4db5bd;
--theme-yellow: #ECBE7B;
--theme-blue: #51afef;
--theme-dark-blue: #2257A0;
--theme-magenta: #c678dd;
--theme-violet: #a9a1e1;
--theme-cyan: #46D9FF;
--theme-dark-cyan: #5699AF;
}
</style>
<link rel='stylesheet' type='text/css' href='https://fniessen.github.io/org-html-themes/org/readtheorg/css/htmlize.css'/>
<link rel='stylesheet' type='text/css' href='https://fniessen.github.io/org-html-themes/org/readtheorg/css/readtheorg.css'/>
<script src='https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js'></script>
<script type='text/javascript' src='https://fniessen.github.io/org-html-themes/org/lib/js/jquery.stickytableheaders.min.js'></script>
<script type='text/javascript' src='https://fniessen.github.io/org-html-themes/org/readtheorg/js/readtheorg.js'></script>
<style>
pre.src {
background-color: var(--theme-bg);
color: var(--theme-fg);
scrollbar-color:#bbb6#9992;
scrollbar-width: thin;
margin: 0;
border: none;
}
div.org-src-container {
border-radius: 12px;
overflow: hidden;
margin-bottom: 24px;
margin-top: 1px;
border: 1px solid#e1e4e5;
}
pre.src::before {
background-color:#6666;
top: 8px;
border: none;
border-radius: 5px;
line-height: 1;
border: 2px solid var(--theme-bg);
opacity: 0;
transition: opacity 200ms;
}
pre.src:hover::before { opacity: 1; }
pre.src:active::before { opacity: 0; }
pre.example {
border-radius: 12px;
background: var(--theme-bg-alt);
color: var(--theme-fg);
}
code {
border-radius: 5px;
background:#e8e8e8;
font-size: 80%;
}
kbd {
display: inline-block;
padding: 3px 5px;
font: 80% SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;
line-height: normal;
line-height: 10px;
color:#444d56;
vertical-align: middle;
background-color:#fafbfc;
border: 1px solid#d1d5da;
border-radius: 3px;
box-shadow: inset 0 -1px 0#d1d5da;
}
table {
max-width: 100%;
overflow-x: auto;
display: block;
border-top: none;
}
a {
text-decoration: none;
background-image: linear-gradient(#d8dce9, #d8dce9);
background-position: 0% 100%;
background-repeat: no-repeat;
background-size: 0% 2px;
transition: background-size .3s;
}
#table-of-contents a {
background-image: none;
}
a:hover, a:focus {
background-size: 100% 2px;
}
a[href^='#'] { font-variant-numeric: oldstyle-nums; }
a[href^='#']:visited { color:#3091d1; }
li .checkbox {
display: inline-block;
width: 0.9em;
height: 0.9em;
border-radius: 3px;
margin: 3px;
top: 4px;
position: relative;
}
li.on > .checkbox { background: var(--theme-green); box-shadow: 0 0 2px var(--theme-green); }
li.trans > .checkbox { background: var(--theme-orange); box-shadow: 0 0 2px var(--theme-orange); }
li.off > .checkbox { background: var(--theme-red); box-shadow: 0 0 2px var(--theme-red); }
li.on > .checkbox::after {
content: '';
height: 0.45em;
width: 0.225em;
-webkit-transform-origin: left top;
transform-origin: left top;
transform: scaleX(-1) rotate(135deg);
border-right: 2.8px solid#fff;
border-top: 2.8px solid#fff;
opacity: 0.9;
left: 0.10em;
top: 0.45em;
position: absolute;
}
li.trans > .checkbox::after {
content: '';
font-weight: bold;
font-size: 1.6em;
position: absolute;
top: 0.23em;
left: 0.09em;
width: 0.35em;
height: 0.12em;
background:#fff;
opacity: 0.9;
border-radius: 0.1em;
}
li.off > .checkbox::after {
content: '✖';
color:#fff;
opacity: 0.9;
position: relative;
top: -0.40rem;
left: 0.17em;
font-size: 0.75em;
}
span.timestamp {
color: #003280;
background: #647CFF44;
border-radius: 3px;
line-height: 1.25;
}
#table-of-contents { overflow-y: auto; }
blockquote p { margin: 8px 0px 16px 0px; }
#postamble .date { color: var(--theme-green); }
::-webkit-scrollbar { width: 10px; height: 8px; }
::-webkit-scrollbar-track { background:#9992; }
::-webkit-scrollbar-thumb { background:#ccc; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background:#888; }
</style>
<!––tec/custom-head-end-->
</head>
<body>
<div id="content" class="content">
<h1 class="title">Doom Emacs Configuration</h1>
<div id="table-of-contents" role="doc-toc">
<h2>Table of Contents</h2>
<div id="text-table-of-contents" role="doc-toc">
<ul>
<li><a href="#org205e54a">1. Intro</a></li>
<li><a href="#orgaab8869">2. General configuration</a>
<ul>
<li><a href="#org2a4dbc6">2.1. File variables</a></li>
<li><a href="#orge35e023">2.2. Personal information</a></li>
<li><a href="#org4d9cf1d">2.3. Visual Settings</a>
<ul>
<li><a href="#org5acab6c">2.3.1. Theme</a></li>
<li><a href="#orgbb5b5e2">2.3.2. Mixed pitch mode</a></li>
<li><a href="#org089a45d">2.3.3. Maximize</a></li>
</ul>
</li>
<li><a href="#org79f30d2">2.4. Editor behavior</a>
<ul>
<li><a href="#orgf6635f8">2.4.1. Deletion</a></li>
<li><a href="#orga36bcfe">2.4.2. Auto-save</a></li>
<li><a href="#org78ecae3">2.4.3. Line wrapping</a></li>
<li><a href="#orgc2297c8">2.4.4. Window splitting</a></li>
<li><a href="#org5550c50">2.4.5. Clipboard and Copy/Paste</a></li>
<li><a href="#org8c56efb">2.4.6. Which-key</a></li>
</ul>
</li>
<li><a href="#org2501e1c">2.5. Authinfo</a></li>
</ul>
</li>
<li><a href="#org73ffd0d">3. Custom Packages</a>
<ul>
<li><a href="#org797f07d">3.1. Package loading</a></li>
<li><a href="#org2f9f66e">3.2. Package configuration</a>
<ul>
<li><a href="#orgaba3e55">3.2.1. caddyfile-mode</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#org1529258">4. Modules</a>
<ul>
<li><a href="#org7c22fa4">4.1. Enable modules (init.el)</a></li>
<li><a href="#org21acfec">4.2. Core configuration</a>
<ul>
<li><a href="#org92fc268">4.2.1. Projects</a></li>
<li><a href="#org2ecdf86">4.2.2. Smart parentheses</a></li>
</ul>
</li>
<li><a href="#org9a20815">4.3. UI configuration</a>
<ul>
<li><a href="#org798352c">4.3.1. Workspaces</a></li>
<li><a href="#org188dcd3">4.3.2. Zen</a></li>
<li><a href="#org5538d86">4.3.3. Treemacs</a></li>
<li><a href="#org0e9cbb3">4.3.4. Pretty-code</a></li>
</ul>
</li>
<li><a href="#orgf12e2f9">4.4. Completion</a></li>
<li><a href="#org8433c4a">4.5. Email configuration (mu4e)</a>
<ul>
<li>
<ul>
<li><a href="#org72ad641">4.5.0.1. Prerequisites</a></li>
<li><a href="#org44dc4ae">4.5.0.2. Configuration</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#orgf7e7a0d">4.6. Tools configuration</a>
<ul>
<li><a href="#org864a9b3">4.6.1. Language Server Protocol (LSP)</a></li>
<li><a href="#orgf60c5ff">4.6.2. Magit</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#orgbf9d494">5. Languages</a>
<ul>
<li><a href="#org04062d4">5.1. Python</a></li>
<li><a href="#org810f8cc">5.2. Golang</a></li>
<li><a href="#orgb81fc38">5.3. Org Mode</a>
<ul>
<li><a href="#org82f6b9c">5.3.1. General settings</a>
<ul>
<li><a href="#org2bc89cb">5.3.1.1. Editor</a></li>
<li><a href="#org82567b8">5.3.1.2. Visuals</a></li>
<li><a href="#org0047ff5">5.3.1.3. Archiving</a></li>
<li><a href="#org3419408">5.3.1.4. Download</a></li>
<li><a href="#org89e3076">5.3.1.5. Exporting (General)</a></li>
<li><a href="#orga79cdd2">5.3.1.6. Exporting to HTML</a></li>
<li><a href="#orgffa7c64">5.3.1.7. Exporting to Beamer</a></li>
<li><a href="#org9f5d382">5.3.1.8. Exporting to GFM</a></li>
</ul>
</li>
<li><a href="#org8d35313">5.3.2. Task management</a>
<ul>
<li><a href="#orgb511ade">5.3.2.1. Capture templates</a></li>
<li><a href="#orge740d0e">5.3.2.2. Task settings</a></li>
<li><a href="#org4ede11c">5.3.2.3. Contexts</a></li>
<li><a href="#orgb6c5fd5">5.3.2.4. Refile targets</a></li>
<li><a href="#org6bd8564">5.3.2.5. Habits</a></li>
<li><a href="#org1ce16a9">5.3.2.6. Custom Agendas</a>
<ul>
<li><a href="#org2606fbc">5.3.2.6.1. All Agenda Function</a></li>
<li><a href="#orgc76592d">5.3.2.6.2. Context Agenda Function</a></li>
<li><a href="#org6f4d881">5.3.2.6.3. Agenda Support Functions</a></li>
</ul>
</li>
<li><a href="#org523ec3f">5.3.2.7. Agenda Searches</a></li>
</ul>
</li>
<li><a href="#org2d4db5b">5.3.3. Notes</a>
<ul>
<li><a href="#orgf84116f">5.3.3.1. org-roam</a></li>
<li><a href="#orge7a5337">5.3.3.2. org-journal</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#orgfa7edab">5.4. YAML</a></li>
<li><a href="#org1bd2f66">5.5. cuda</a></li>
<li><a href="#orge8abbb3">5.6. cc</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div id="outline-container-org205e54a" class="outline-2">
<h2 id="org205e54a"><span class="section-number-2">1.</span> Intro</h2>
<div class="outline-text-2" id="text-1">
<p>
This is my foray into the world of literate Emacs configuration. I think I may have finally lost it. But let’s give it a
shot!
</p>
<p>
I use <a href="https://github.com/hlissner/doom-emacs">doom-emacs</a> as my core Emacs distribution. Doom loads its configuration from three files in <kbd>~/.config/doom</kbd>:
</p>
<dl class="org-dl">
<dt>init.el</dt><dd>Doom modules to enable.</dd>
<dt>config.el</dt><dd>User configuration.</dd>
<dt>packages.el</dt><dd>Custom packages to load.</dd>
</dl>
<p>
<kbd>config.org</kbd> is what generates all of these, and is what you are viewing. It lives <a href="https://github.com/jsravn/emacs-config/">here</a>.
</p>
</div>
</div>
<div id="outline-container-orgaab8869" class="outline-2">
<h2 id="orgaab8869"><span class="section-number-2">2.</span> General configuration</h2>
<div class="outline-text-2" id="text-2">
</div>
<div id="outline-container-org2a4dbc6" class="outline-3">
<h3 id="org2a4dbc6"><span class="section-number-3">2.1.</span> File variables</h3>
<div class="outline-text-3" id="text-2-1">
<p>
This configures the file variables for <kbd>config.el</kbd> and <kbd>init.el</kbd>. Apparently <a href="https://nullprogram.com/blog/2016/12/22/">enabling lexical binding</a> makes them faster to
process.
</p>
<div class="org-src-container">
<pre class="src src-emacs-lisp"><span style="color: #5B6268;">;;; </span><span style="color: #5B6268;">~/.config/doom/config.el -*- lexical-binding: t; -*-</span>
</pre>
</div>
<div class="org-src-container">
<pre class="src src-emacs-lisp"><span style="color: #5B6268;">;;; </span><span style="color: #5B6268;">~/.config/doom/init.el -*- lexical-binding: t; -*-</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orge35e023" class="outline-3">
<h3 id="orge35e023"><span class="section-number-3">2.2.</span> Personal information</h3>
<div class="outline-text-3" id="text-2-2">
<p>
This contains various bits about myself that Emacs likes to use in various modules.
</p>
<div class="org-src-container">
<pre class="src src-emacs-lisp"><span style="color: #51afef;">(</span><span style="color: #51afef;">setq</span> <span style="color: #dcaeea;">user-full-name</span> <span style="color: #98be65;">"James Ravn"</span>
<span style="color: #dcaeea;">user-mail-address</span> <span style="color: #98be65;">"[email protected]"</span>
calendar-latitude <span style="color: #da8548; font-weight: bold;">51.508166</span>
calendar-longitude <span style="color: #da8548; font-weight: bold;">-0.075971</span>
calendar-location-name <span style="color: #98be65;">"London, UK"</span><span style="color: #51afef;">)</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org4d9cf1d" class="outline-3">
<h3 id="org4d9cf1d"><span class="section-number-3">2.3.</span> Visual Settings</h3>
<div class="outline-text-3" id="text-2-3">
<p>
This tweaks the visuals to my liking.
</p>
</div>
<div id="outline-container-org5acab6c" class="outline-4">
<h4 id="org5acab6c"><span class="section-number-4">2.3.1.</span> Theme</h4>
<div class="outline-text-4" id="text-2-3-1">
<p>
Use the default doom-one theme, and the very nice <a href="https://www.fsd.it/shop/fonts/pragmatapro/">PragmataPro</a> font.
</p>
<div class="org-src-container">
<pre class="src src-emacs-lisp"><span style="color: #51afef;">(</span><span style="color: #51afef;">letrec</span> <span style="color: #c678dd;">(</span><span style="color: #98be65;">(</span>base
<span style="color: #5B6268;">; </span><span style="color: #5B6268;">adjust font size based on system</span>
<span style="color: #a9a1e1;">(</span><span style="color: #51afef;">cond</span> <span style="color: #51afef;">(</span><span style="color: #c678dd;">(</span><span style="color: #a9a1e1;">equal</span> <span style="color: #98be65;">"loki"</span> <span style="color: #98be65;">(</span><span style="color: #dcaeea;">system-name</span><span style="color: #98be65;">)</span><span style="color: #c678dd;">)</span> <span style="color: #da8548; font-weight: bold;">8</span><span style="color: #51afef;">)</span>
<span style="color: #51afef;">(</span>t <span style="color: #da8548; font-weight: bold;">0</span><span style="color: #51afef;">)</span><span style="color: #a9a1e1;">)</span><span style="color: #98be65;">)</span><span style="color: #c678dd;">)</span>
<span style="color: #c678dd;">(</span><span style="color: #51afef;">setq</span> <span style="color: #dcaeea;">doom-theme</span> <span style="color: #51afef;">'</span><span style="color: #ECBE7B;">doom-one</span>
<span style="color: #dcaeea;">doom-font</span> <span style="color: #98be65;">(</span><span style="color: #a9a1e1;">font-spec</span> <span style="color: #c678dd;">:family</span> <span style="color: #98be65;">"PragmataPro Liga"</span> <span style="color: #c678dd;">:size</span> <span style="color: #a9a1e1;">(</span><span style="color: #a9a1e1;">+</span> base <span style="color: #da8548; font-weight: bold;">16</span><span style="color: #a9a1e1;">)</span><span style="color: #98be65;">)</span>
<span style="color: #dcaeea;">doom-variable-pitch-font</span> <span style="color: #98be65;">(</span><span style="color: #a9a1e1;">font-spec</span> <span style="color: #c678dd;">:family</span> <span style="color: #98be65;">"DejaVu Sans"</span> <span style="color: #c678dd;">:size</span> <span style="color: #a9a1e1;">(</span><span style="color: #a9a1e1;">+</span> base <span style="color: #da8548; font-weight: bold;">14</span><span style="color: #a9a1e1;">)</span><span style="color: #98be65;">)</span>
<span style="color: #dcaeea;">doom-big-font</span> <span style="color: #98be65;">(</span><span style="color: #a9a1e1;">font-spec</span> <span style="color: #c678dd;">:family</span> <span style="color: #98be65;">"PragmataPro Liga"</span> <span style="color: #c678dd;">:size</span> <span style="color: #a9a1e1;">(</span><span style="color: #a9a1e1;">+</span> base <span style="color: #da8548; font-weight: bold;">20</span><span style="color: #a9a1e1;">)</span><span style="color: #98be65;">)</span>
<span style="color: #dcaeea;">doom-unicode-font</span> <span style="color: #98be65;">(</span><span style="color: #a9a1e1;">font-spec</span> <span style="color: #c678dd;">:family</span> <span style="color: #98be65;">"Noto Color Emoji"</span> <span style="color: #c678dd;">:size</span> <span style="color: #a9a1e1;">(</span><span style="color: #a9a1e1;">+</span> base <span style="color: #da8548; font-weight: bold;">16</span><span style="color: #a9a1e1;">)</span><span style="color: #98be65;">)</span>
+pretty-code-pragmata-pro-font-name <span style="color: #98be65;">"PragmataPro Liga"</span><span style="color: #c678dd;">)</span>
<span style="color: #51afef;">)</span>
</pre>
</div>
<p>
Keep the splash screen clean.
</p>
<div class="org-src-container">
<pre class="src src-emacs-lisp"><span style="color: #51afef;">(</span><span style="color: #51afef;">setq</span> <span style="color: #dcaeea;">fancy-splash-image</span> <span style="color: #c678dd;">(</span><span style="color: #a9a1e1;">concat</span> <span style="color: #dcaeea;">doom-private-dir</span> <span style="color: #98be65;">"splash.png"</span><span style="color: #c678dd;">)</span><span style="color: #51afef;">)</span>
<span style="color: #51afef;">(</span><span style="color: #a9a1e1;">remove-hook</span> <span style="color: #51afef;">'</span><span style="color: #dcaeea;">+doom-dashboard-functions</span> <span style="color: #51afef;">#'</span><span style="color: #ECBE7B;">doom-dashboard-widget-shortmenu</span><span style="color: #51afef;">)</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgbb5b5e2" class="outline-4">
<h4 id="orgbb5b5e2"><span class="section-number-4">2.3.2.</span> Mixed pitch mode</h4>
<div class="outline-text-4" id="text-2-3-2">
<p>
Enable <kbd>mixed-pitch-mode</kbd> for some text modes. Also ensure it preserves the variable pitch height rather than inheriting from
the default face.
</p>
<div class="org-src-container">
<pre class="src src-emacs-lisp"><span style="color: #51afef;">(</span><span style="color: #51afef;">add-hook!</span> <span style="color: #c678dd;">(</span><span style="color: #a9a1e1;">org-mode</span> gfm-mode markdown-mode<span style="color: #c678dd;">)</span> <span style="color: #51afef;">#'</span><span style="color: #dcaeea;">mixed-pitch-mode</span><span style="color: #51afef;">)</span>
<span style="color: #51afef;">(</span><span style="color: #51afef;">setq</span> <span style="color: #dcaeea;">mixed-pitch-set-height</span> t<span style="color: #51afef;">)</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org089a45d" class="outline-4">
<h4 id="org089a45d"><span class="section-number-4">2.3.3.</span> Maximize</h4>
<div class="outline-text-4" id="text-2-3-3">
<p>
Maximize the frame when doom starts. I prefer it always opening up this way. Note this has no real effect if using a
tiling WM.
</p>
<div class="org-src-container">
<pre class="src src-emacs-lisp"><span style="color: #5B6268;">;; </span><span style="color: #5B6268;">(add-to-list 'default-frame-alist '(fullscreen . maximized))</span>
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org79f30d2" class="outline-3">
<h3 id="org79f30d2"><span class="section-number-3">2.4.</span> Editor behavior</h3>
<div class="outline-text-3" id="text-2-4">
<p>
This tweaks the general editor behavior to my liking.
</p>
<p>
Disable <kbd>ws-butler</kbd> mode in case it is causing LSP errors.
</p>
<div class="org-src-container">
<pre class="src src-emacs-lisp"><span style="color: #51afef;">(</span><span style="color: #a9a1e1;">remove-hook</span> <span style="color: #51afef;">'</span><span style="color: #dcaeea;">doom-first-buffer-hook</span> <span style="color: #51afef;">#'</span><span style="color: #dcaeea;">ws-butler-global-mode</span><span style="color: #51afef;">)</span>
<span style="color: #51afef;">(</span><span style="color: #51afef;">after!</span> editorconfig
<span style="color: #c678dd;">(</span><span style="color: #51afef;">setq</span> <span style="color: #dcaeea;">editorconfig-trim-whitespaces-mode</span> nil<span style="color: #c678dd;">)</span><span style="color: #51afef;">)</span>
<span style="color: #5B6268;">; </span><span style="color: #5B6268;">Default doom threshold of 400 is too low in my experience.</span>
<span style="color: #51afef;">(</span><span style="color: #51afef;">after!</span> so-long <span style="color: #c678dd;">(</span><span style="color: #51afef;">setq</span> <span style="color: #dcaeea;">so-long-threshold</span> <span style="color: #da8548; font-weight: bold;">4000</span><span style="color: #c678dd;">)</span><span style="color: #51afef;">)</span>
</pre>
</div>
<p>
Make whitespace-mode show more things.
</p>
<div class="org-src-container">
<pre class="src src-emacs-lisp"><span style="color: #51afef;">(</span><span style="color: #51afef;">setq</span> <span style="color: #dcaeea;">whitespace-style</span> <span style="color: #51afef;">'</span><span style="color: #c678dd;">(</span>face indentation trailing lines-tail<span style="color: #c678dd;">)</span><span style="color: #51afef;">)</span>
<span style="color: #51afef;">(</span><span style="color: #dcaeea;">global-whitespace-mode</span> t<span style="color: #51afef;">)</span>
</pre>
</div>
<p>
Exit immediately.
</p>
<div class="org-src-container">
<pre class="src src-emacs-lisp"><span style="color: #51afef;">(</span><span style="color: #51afef;">setq</span> <span style="color: #dcaeea;">confirm-kill-emacs</span> nil<span style="color: #51afef;">)</span>
</pre>
</div>
</div>
<div id="outline-container-orgf6635f8" class="outline-4">
<h4 id="orgf6635f8"><span class="section-number-4">2.4.1.</span> Deletion</h4>
<div class="outline-text-4" id="text-2-4-1">
<p>
Delete files to the local Trash folder, e.g. <kbd>~/.local/share/Trash</kbd> on Linux.
</p>
<div class="org-src-container">
<pre class="src src-emacs-lisp"><span style="color: #5B6268;">;</span><span style="color: #5B6268;">(setq delete-by-moving-to-trash t)</span>
</pre>
</div>
<p>
Make undo more fine-grained.
</p>
<div class="org-src-container">
<pre class="src src-emacs-lisp"><span style="color: #51afef;">(</span><span style="color: #51afef;">setq</span> <span style="color: #dcaeea;">evil-want-fine-undo</span> t<span style="color: #51afef;">)</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orga36bcfe" class="outline-4">
<h4 id="orga36bcfe"><span class="section-number-4">2.4.2.</span> Auto-save</h4>
<div class="outline-text-4" id="text-2-4-2">
<p>
I want Emacs to auto-save files I’m working on to avoid the tedium of manual saving all the time. Auto save can be
obnoxious if done incorrectly, so I want it to only save when safe.
</p>
<p>
First I use the built-in auto-save functionality to save the buffer after some idle time.
</p>
<div class="org-src-container">
<pre class="src src-emacs-lisp"><span style="color: #51afef;">(</span><span style="color: #51afef;">setq</span> <span style="color: #dcaeea;">auto-save-visited-interval</span> <span style="color: #da8548; font-weight: bold;">5</span><span style="color: #51afef;">)</span> <span style="color: #5B6268;">; </span><span style="color: #5B6268;">Save after 5s of idle time.</span>
<span style="color: #51afef;">(</span><span style="color: #dcaeea;">auto-save-visited-mode</span> t<span style="color: #51afef;">)</span>
</pre>
</div>
<p>
And like other modern editors, I want Emacs to save the buffer when the focus changes. To avoid weird issues, such as
when interacting with popups, I only save when swapping between file buffers and when the frame loses focus.
</p>
<div class="org-src-container">
<pre class="src src-emacs-lisp"><span style="color: #51afef;">(</span><span style="color: #51afef;">add-hook!</span> <span style="color: #51afef;">'</span><span style="color: #c678dd;">(</span><span style="color: #dcaeea;">doom-switch-buffer-hook</span>
<span style="color: #dcaeea;">doom-switch-window-hook</span><span style="color: #c678dd;">)</span>
<span style="color: #c678dd;">(</span><span style="color: #51afef;">if</span> <span style="color: #98be65;">(</span><span style="color: #dcaeea;">buffer-file-name</span><span style="color: #98be65;">)</span> <span style="color: #98be65;">(</span><span style="color: #a9a1e1;">save-some-buffers</span> t<span style="color: #98be65;">)</span><span style="color: #c678dd;">)</span><span style="color: #51afef;">)</span> <span style="color: #5B6268;">; </span><span style="color: #5B6268;">avoid saving when switching to a non-file buffer</span>
<span style="color: #51afef;">(</span><span style="color: #51afef;">add-function</span> <span style="color: #c678dd;">:after</span> <span style="color: #dcaeea;">after-focus-change-function</span>
<span style="color: #c678dd;">(</span><span style="color: #51afef;">lambda</span> <span style="color: #98be65;">()</span> <span style="color: #98be65;">(</span><span style="color: #a9a1e1;">save-some-buffers</span> t<span style="color: #98be65;">)</span><span style="color: #c678dd;">)</span><span style="color: #51afef;">)</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org78ecae3" class="outline-4">
<h4 id="org78ecae3"><span class="section-number-4">2.4.3.</span> Line wrapping</h4>
<div class="outline-text-4" id="text-2-4-3">
<p>
Fill column primarily affects how Emacs breaks lines in <code>auto-fill-mode</code>. The default is 80. I set it to 120 which is a
bit nicer for modern screens. I also enable a fill column indicator for non-text modes (it looks bad in text modes due
to variable pitch fonts).
</p>
<div class="org-src-container">
<pre class="src src-emacs-lisp"><span style="color: #51afef;">(</span><span style="color: #51afef;">setq-default</span> <span style="color: #dcaeea;">fill-column</span> <span style="color: #da8548; font-weight: bold;">120</span><span style="color: #51afef;">)</span>
<span style="color: #51afef;">(</span><span style="color: #51afef;">add-hook!</span> <span style="color: #51afef;">'</span><span style="color: #c678dd;">(</span><span style="color: #dcaeea;">text-mode-hook</span> <span style="color: #dcaeea;">prog-mode-hook</span> conf-mode-hook<span style="color: #c678dd;">)</span>
<span style="color: #51afef;">#'</span><span style="color: #dcaeea;">display-fill-column-indicator-mode</span><span style="color: #51afef;">)</span>
</pre>
</div>
<p>
Also I disable <code>auto-fill-mode</code> by default. I prefer to enable it only when needed, as it doesn’t play nicely with many
of the text files I work on. Instead I use <code>+word-wrap-mode</code> which is equivalent to using <kbd>SPC t w</kbd> by default. <span class="underline">Disable
this for now as I’ve come to like auto-fill mode as the default.</span>
</p>
<div class="org-src-container">
<pre class="src src-emacs-lisp"><span style="color: #5B6268;">;; </span><span style="color: #5B6268;">(remove-hook 'text-mode-hook #'auto-fill-mode)</span>
<span style="color: #5B6268;">;; </span><span style="color: #5B6268;">(add-hook 'text-mode-hook #'+word-wrap-mode)</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgc2297c8" class="outline-4">
<h4 id="orgc2297c8"><span class="section-number-4">2.4.4.</span> Window splitting</h4>
<div class="outline-text-4" id="text-2-4-4">
<p>
These changes makes window splitting a bit nicer.
</p>
<p>
First, I want focus to change to newly created windows.
</p>
<div class="org-src-container">
<pre class="src src-emacs-lisp"><span style="color: #51afef;">(</span><span style="color: #51afef;">setq</span> <span style="color: #dcaeea;">evil-vsplit-window-right</span> t
<span style="color: #dcaeea;">evil-split-window-below</span> t<span style="color: #51afef;">)</span>
</pre>
</div>
<p>
Also, Emacs automatically splits windows if it thinks there is enough room. I find the default of 160 too aggressive, so
I increase it to make Emacs more conservative.
</p>
<div class="org-src-container">
<pre class="src src-emacs-lisp"><span style="color: #51afef;">(</span><span style="color: #51afef;">setq</span> <span style="color: #dcaeea;">split-width-threshold</span> <span style="color: #da8548; font-weight: bold;">240</span><span style="color: #51afef;">)</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org5550c50" class="outline-4">
<h4 id="org5550c50"><span class="section-number-4">2.4.5.</span> Clipboard and Copy/Paste</h4>
<div class="outline-text-4" id="text-2-4-5">
<p>
I want to integrate Emacs with the system clipboard. All copy/paste goes into and takes from the system clipboard. This allows
easy copying in other applications and pasting into Emacs via <kbd>p</kbd> or similar.
</p>
<div class="org-src-container">
<pre class="src src-emacs-lisp"><span style="color: #51afef;">(</span><span style="color: #51afef;">setq</span> <span style="color: #dcaeea;">select-enable-clipboard</span> t<span style="color: #51afef;">)</span>
</pre>
</div>
<p>
And allow pasting from system clipboard with the typical Linux <kbd>C-S-v</kbd> while in insert mode:
</p>
<div class="org-src-container">
<pre class="src src-emacs-lisp"><span style="color: #51afef;">(</span><span style="color: #51afef;">map!</span>
<span style="color: #c678dd;">:i</span> <span style="color: #98be65;">"C-S-v"</span> <span style="color: #51afef;">#'</span><span style="color: #ECBE7B;">yank</span><span style="color: #51afef;">)</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org8c56efb" class="outline-4">
<h4 id="org8c56efb"><span class="section-number-4">2.4.6.</span> Which-key</h4>
<div class="outline-text-4" id="text-2-4-6">
<p>
Reduce the popup delay for <kbd>which-key</kbd>.
</p>
<div class="org-src-container">
<pre class="src src-emacs-lisp"><span style="color: #51afef;">(</span><span style="color: #51afef;">setq</span> <span style="color: #dcaeea;">which-key-idle-delay</span> <span style="color: #da8548; font-weight: bold;">0.5</span><span style="color: #51afef;">)</span>
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org2501e1c" class="outline-3">
<h3 id="org2501e1c"><span class="section-number-3">2.5.</span> Authinfo</h3>
<div class="outline-text-3" id="text-2-5">
<p>
Sensitive credentials are stored in a gpg encrypted auth file. I prefer to only use <kbd>~/.authinfo.gpg</kbd>, rather than doom’s default of <kbd>~/.emacs.d/.local/etc/authinfo.gpg</kbd> .
</p>
<div class="org-src-container">
<pre class="src src-emacs-lisp"><span style="color: #51afef;">(</span><span style="color: #51afef;">setq</span> <span style="color: #dcaeea;">auth-sources</span> <span style="color: #51afef;">'</span><span style="color: #c678dd;">(</span><span style="color: #98be65;">"~/.authinfo.gpg"</span><span style="color: #c678dd;">)</span><span style="color: #51afef;">)</span>
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org73ffd0d" class="outline-2">
<h2 id="org73ffd0d"><span class="section-number-2">3.</span> Custom Packages</h2>
<div class="outline-text-2" id="text-3">
<p>
This section defines the custom packages for <kbd>packages.el</kbd>.
</p>
<p>
<kbd>packages.el</kbd> should not be byte-compiled.
</p>
<div class="org-src-container">
<pre class="src src-emacs-lisp"><span style="color: #5B6268;">;; </span><span style="color: #5B6268;">-*- no-byte-compile: t; -*-</span>
</pre>
</div>
</div>
<div id="outline-container-org797f07d" class="outline-3">
<h3 id="org797f07d"><span class="section-number-3">3.1.</span> Package loading</h3>
<div class="outline-text-3" id="text-3-1">
<p>
Use the <code>package!</code> macro for each package. Afterwards run <code>doom refresh</code> on the command line. Everything in this section
goes into <kbd>packges.el</kbd>.
</p>
<div class="org-src-container">
<pre class="src src-emacs-lisp"><span style="color: #5B6268;">;; </span><span style="color: #5B6268;">custom packages</span>
<span style="color: #5B6268;">;; </span><span style="color: #5B6268;">unpin these packages to use the latest always</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org2f9f66e" class="outline-3">
<h3 id="org2f9f66e"><span class="section-number-3">3.2.</span> Package configuration</h3>
<div class="outline-text-3" id="text-3-2">
<p>
For configuring packages that are loaded in <kbd>packages.el</kbd>.
</p>
</div>
<div id="outline-container-orgaba3e55" class="outline-4">
<h4 id="orgaba3e55"><span class="section-number-4">3.2.1.</span> caddyfile-mode</h4>
<div class="outline-text-4" id="text-3-2-1">
<div class="org-src-container">
<pre class="src src-emacs-lisp"><span style="color: #51afef;">(</span><span style="color: #51afef;">use-package</span> caddyfile-mode
<span style="color: #c678dd;">:mode</span> <span style="color: #c678dd;">(</span><span style="color: #98be65;">(</span><span style="color: #98be65;">"Caddyfile\\'"</span> . caddyfile-mode<span style="color: #98be65;">)</span>
<span style="color: #98be65;">(</span><span style="color: #98be65;">"Corefile\\'"</span> . caddyfile-mode<span style="color: #98be65;">)</span>
<span style="color: #98be65;">(</span><span style="color: #98be65;">"caddy\\.conf\\'"</span> . caddyfile-mode<span style="color: #98be65;">)</span><span style="color: #c678dd;">)</span><span style="color: #51afef;">)</span>
</pre>
</div>
</div>
</div>
</div>
</div>
<div id="outline-container-org1529258" class="outline-2">
<h2 id="org1529258"><span class="section-number-2">4.</span> Modules</h2>
<div class="outline-text-2" id="text-4">
<p>
This section configures the doom modules. Languages have their own <a href="#orgbf9d494">dedicated section</a>.
</p>
</div>
<div id="outline-container-org7c22fa4" class="outline-3">
<h3 id="org7c22fa4"><span class="section-number-3">4.1.</span> Enable modules (init.el)</h3>
<div class="outline-text-3" id="text-4-1">
<p>
This section generates <kbd>init.el</kbd> and is where I enable the doom modules I want. See <a href="https://github.com/hlissner/doom-emacs/blob/develop/init.example.el">init.example.el</a> for all possible
options.
</p>
<div class="org-src-container">
<pre class="src src-emacs-lisp"><span style="color: #51afef;">(</span><span style="color: #51afef;">doom!</span>
<span style="color: #c678dd;">:completion</span>
<span style="color: #c678dd;">(</span>company
+childframe<span style="color: #c678dd;">)</span>
<span style="color: #c678dd;">(</span>ivy
+icons<span style="color: #c678dd;">)</span>
<span style="color: #c678dd;">:ui</span>
doom
doom-dashboard
hl-todo
indent-guides
<span style="color: #c678dd;">(</span>modeline<span style="color: #c678dd;">)</span>
nav-flash
ophints
<span style="color: #c678dd;">(</span>popup
+all
+defaults<span style="color: #c678dd;">)</span>
treemacs
vc-gutter
vi-tilde-fringe
window-select
workspaces
zen
<span style="color: #c678dd;">:editor</span>
<span style="color: #c678dd;">(</span>evil +everywhere<span style="color: #c678dd;">)</span>
fold
format
multiple-cursors
rotate-text
snippets
<span style="color: #dcaeea;">word-wrap</span>
<span style="color: #c678dd;">:emacs</span>
dired
electric
vc
<span style="color: #c678dd;">:term</span>
vterm
<span style="color: #c678dd;">:checkers</span>
syntax
<span style="color: #c678dd;">:tools</span>
ansible
docker
direnv
editorconfig
<span style="color: #c678dd;">(</span><span style="color: #a9a1e1;">eval</span>
+overlay<span style="color: #c678dd;">)</span>
<span style="color: #c678dd;">(</span>lookup
+docsets
+dictionary<span style="color: #c678dd;">)</span>
<span style="color: #c678dd;">(</span><span style="color: #c678dd;">lsp</span> +peek<span style="color: #c678dd;">)</span>
<span style="color: #c678dd;">(</span><span style="color: #c678dd;">magit</span> +forge<span style="color: #c678dd;">)</span>
make
terraform
<span style="color: #c678dd;">:lang</span>
<span style="color: #c678dd;">(</span>cc +lsp<span style="color: #c678dd;">)</span>
<span style="color: #c678dd;">(</span>clojure
+cider
+lsp<span style="color: #c678dd;">)</span>
common-lisp