-
Notifications
You must be signed in to change notification settings - Fork 3
/
README.html
1393 lines (1320 loc) · 72.9 KB
/
README.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>
<!-- 2024-09-30 Mon 13:14 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>neo emacs</title>
<meta name="author" content="sincebyte" />
<meta name="generator" content="Org Mode" />
<style type="text/css">
#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>
<script src = "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src = "https://emacs-1308440781.cos.ap-chengdu.myqcloud.com/classic/scroll.js"></script>
<link href = "https://emacs-1308440781.cos.ap-chengdu.myqcloud.com/classic/base.css" rel="stylesheet" type="text/css"></link>
<a href="https://github.com/vanniuner/neo-emacs" class="github-corner" aria-label="View source on GitHub"><svg width="80" height="80" viewBox="0 0 250 250" style="fill:#70B7FD; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a><style>.github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}}</style>
</head>
<body>
<div id="preamble" class="status">
<p>Made ✐︎ by
</div>
<div id="content" class="content">
<h1 class="title">neo emacs</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="#orgfe6e1ae">1. About</a></li>
<li><a href="#org0608d7b">2. How to install</a>
<ul>
<li><a href="#org30029ad">2.1. Install emacs</a></li>
<li><a href="#orgf8c133f">2.2. Clone project</a></li>
<li><a href="#org9795fe3">2.3. Doom Install</a></li>
</ul>
</li>
<li><a href="#org628726a">3. How to update</a>
<ul>
<li><a href="#org6e76f0e">3.1. For brew</a></li>
<li><a href="#org17b3aac">3.2. For doom project</a></li>
</ul>
</li>
<li><a href="#org7264219">4. Patches</a>
<ul>
<li><a href="#org81a97e1">4.1. transparent patch</a></li>
<li><a href="#org25ab717">4.2. cursor animation</a></li>
<li><a href="#org2c322aa">4.3. how to</a></li>
</ul>
</li>
<li><a href="#orgeb5e261">5. Private setting</a>
<ul>
<li><a href="#orgadf7f53">5.1. Font setting</a></li>
<li><a href="#org6e80d8e">5.2. Basic setting</a></li>
</ul>
</li>
<li><a href="#org3891a28">6. Neoemacs modules</a>
<ul>
<li><a href="#org6c2a263">6.1. Lsp Java</a></li>
<li><a href="#org8835965">6.2. Vterm Shell</a></li>
<li><a href="#orge12ac5d">6.3. Ejc Sql</a></li>
<li><a href="#org92a71fe">6.4. Emacs Rime</a></li>
<li><a href="#orge3af7c2">6.5. Org mode</a></li>
<li><a href="#org2a401fa">6.6. Restclient</a></li>
<li><a href="#org63f0bf0">6.7. Verb</a></li>
<li><a href="#org6782f87">6.8. iredis</a></li>
<li><a href="#orgd47f10b">6.9. Bookmark</a></li>
<li><a href="#org424b034">6.10. Elpa Offline</a></li>
<li><a href="#org49c6a89">6.11. Vue</a></li>
<li><a href="#org5d56035">6.12. startup workspace</a></li>
</ul>
</li>
<li><a href="#org461d3c0">7. About the Release</a></li>
<li><a href="#org3cf49fd">8. Customize Farther</a></li>
</ul>
</div>
</div>
<p>
<img src="https://img.shields.io/badge/neo_emacs-v3.0-green.svg" alt="neo_emacs-v3.0-green.svg" class="org-svg" /> <img src="https://img.shields.io/badge/based_on-doom_emacs-red.svg?color=3152A0" alt="based_on-doom_emacs-red.svg?color=3152A0" /> <img src="https://img.shields.io/badge/macos-full_supported-red.svg?logo=macos&color=55C2E1" alt="macos-full_supported-red.svg?logo=macos&color=55C2E1" /> <img src="https://img.shields.io/badge/windows-almost_supported-red.svg?logo=windows&color=3498DB" alt="windows-almost_supported-red.svg?logo=windows&color=3498DB" /><br />
<img src="https://img.shields.io/badge/eclipse-jdt_1.27.1-red.svg?logo=eclipse&color=2C2255" alt="eclipse-jdt_1.27.1-red.svg?logo=eclipse&color=2C2255" /> <img src="https://img.shields.io/badge/supports-Emacs_27.1_to_30.0-red.svg?logo=gnuemacs&color=7F5AB6" alt="supports-Emacs_27.1_to_30.0-red.svg?logo=gnuemacs&color=7F5AB6" /><br />
</p>
<div id="org34ac95c" class="figure">
<p><img src="./images/image-use.png" alt="image-use.png" /><br />
</p>
</div>
<div id="outline-container-orgfe6e1ae" class="outline-2">
<h2 id="orgfe6e1ae"><span class="section-number-2">1.</span> About</h2>
<div class="outline-text-2" id="text-1">
<p>
Neo emacs is a configuration framework for GNU Emacs which is based on doom emacs and focuses on the java web application coding environment. Neo emacs has the following features:<br />
</p>
<ul class="org-ul">
<li>Code completion: Lsp-java supports maven and gradle project.<br /></li>
<li>Program debugging: Dap-java supports program debugging.<br /></li>
<li>Http client: Rest-client is a tool to manually explore and test HTTP REST webservices just like Postman.<br /></li>
<li>Http client*: verb a package for Emacs which allows you to organize and send HTTP requests.<br /></li>
<li>SQL client: Ejc-sql turns Emacs into a simple SQL client which supports various databases.<br /></li>
<li>Redis client: <a href="https://github.com/laixintao/iredis">IRedis</a> is a terminal client for redis with auto-completion and syntax highlighting.<br /></li>
<li>Terminal emulator: Emacs-libvterm (vterm) is fully-fledged terminal emulator inside GNU Emacs based on libvterm.<br /></li>
<li>Knowledge management system: Org-roam borrows principles from the Zettelkasten method, providing a solution for non-hierarchical note-taking.<br /></li>
</ul>
</div>
</div>
<div id="outline-container-org0608d7b" class="outline-2">
<h2 id="org0608d7b"><span class="section-number-2">2.</span> How to install</h2>
<div class="outline-text-2" id="text-2">
</div>
<div id="outline-container-org30029ad" class="outline-3">
<h3 id="org30029ad"><span class="section-number-3">2.1.</span> Install emacs</h3>
<div class="outline-text-3" id="text-2-1">
<blockquote>
<p>
Most of the time, for safety you should install emacs by brew or complie it from source ,that will give you a better compatibility.<br />
In other words, try not to install emacs throuht Free installation package like Gnu Emacs below.<br />
</p>
</blockquote>
<p>
There have many emacs distribution,just choose one and install it.<br />
</p>
<ul class="org-ul">
<li><p>
<a href="https://github.com/railwaycat/homebrew-emacsmacport">EmacsPorts</a> is the best choice to run NeoEmcas on macos now.<br />
</p>
<div class="org-src-container">
<pre class="src src-shell">│ brew tap railwaycat/emacsmacport
│ brew install emacs-mac --with-natural-title-bar --with-mac-metal <span style="color: #65d5a8;">\</span>
│ --with-librsvg --with-starter --with-emacs-big-sur-icon --with-native-comp <span style="color: #65d5a8;">\</span>
│ defaults write org.gnu.Emacs TransparentTitleBar DARK <span style="color: #65d5a8;">\</span>
│ defaults write org.gnu.Emacs HideDocumentIcon kES
</pre>
</div></li>
<li><p>
<a href="https://github.com/d12frosted/homebrew-emacs-plus">Emacs-plus</a> which I used for a long time once.<br />
</p>
<div class="org-src-container">
<pre class="src src-shell">│ brew tap d12frosted/emacs-plus
│ brew install emacs-mac --with-natural-title-bar <span style="color: #65d5a8;">\</span>
│ --with-mac-metal --with-librsvg --with-starter <span style="color: #65d5a8;">\</span>
│ --with-emacs-big-sur-icon --
</pre>
</div></li>
<li><a href="https://www.gnu.org/software/emacs/">Gnu-Emacs</a> is the official emacs client which I used for windows platform.<br /></li>
<li><p>
<a href="https://git.savannah.gnu.org/cgit/emacs.git">Source Code</a> Building form source which I use rarely.<br />
building emacs with with source code<br />
</p>
<div class="org-src-container">
<pre class="src src-shell"><span class="linenr">1: </span>│ <span style="color: #41bf4f;">git</span> clone git://git.savannah.gnu.org/emacs.git
<span class="linenr">2: </span>│ <span style="color: #41bf4f;">cd</span> emacs
<span class="linenr">3: </span>│ <span style="color: #41bf4f;">git</span> checkout emacs-28
<span class="linenr">4: </span>│ brew install libxml2
<span class="linenr">5: </span>│ <span style="color: #41bf4f;">make</span> configure
<span class="linenr">6: </span>│ ./configure --with-native-compilation --with-modern-papirus-icon --with-no-titlebar
<span class="linenr">7: </span>│ <span style="color: #41bf4f;">make</span> -j4
<span class="linenr">8: </span>│ <span style="color: #41bf4f;">make</span> install
<span class="linenr">9: </span>│ open nextstep/Emacs.app
</pre>
</div></li>
</ul>
<p>
After emacs installation, set environment variables which names EMACS ,this depends on your emacs exec path.<br />
</p>
<div class="org-src-container">
<pre class="src src-shell"><span style="color: #d4aaf0; font-weight: bold;">export</span> <span style="color: #2fd0db;">EMACS</span>=/Applications/Emacs.app/Contents/MacOS/Emacs
</pre>
</div>
</div>
</div>
<div id="outline-container-orgf8c133f" class="outline-3">
<h3 id="orgf8c133f"><span class="section-number-3">2.2.</span> Clone project</h3>
<div class="outline-text-3" id="text-2-2">
<p>
clone doom-emacs and neo-emacs from github.<br />
</p>
<div class="org-src-container">
<pre class="src src-shell"><span style="color: #41bf4f;">git</span> clone --depth <span style="color: #12b4ff;">1</span> https://github.com/doomemacs/doomemacs ~/.emacs.d
<span style="color: #41bf4f;">git</span> clone --depth <span style="color: #12b4ff;">1</span> https://github.com/vanniuner/neo-emacs.git ~/.doom.d/
</pre>
</div>
</div>
</div>
<div id="outline-container-org9795fe3" class="outline-3">
<h3 id="org9795fe3"><span class="section-number-3">2.3.</span> Doom Install</h3>
<div class="outline-text-3" id="text-2-3">
<p>
Set up a vpn if you need it.<br />
</p>
<div class="org-src-container">
<pre class="src src-shell"><span style="color: #d4aaf0; font-weight: bold;">export</span> <span style="color: #2fd0db;">http_proxy</span>=<span style="color: #65d5a8;">"ip:port"</span>
<span style="color: #d4aaf0; font-weight: bold;">export</span> <span style="color: #2fd0db;">https_proxy</span>=<span style="color: #65d5a8;">"ip:port"</span>
</pre>
</div>
<p>
Set your emacs cmd for doom install.<br />
</p>
<div class="org-src-container">
<pre class="src src-shell"><span style="color: #d4aaf0; font-weight: bold;">export</span> <span style="color: #2fd0db;">EMACS</span>= $<span style="color: #2fd0db;">YOUR</span> EMACS CMD PATH$
</pre>
</div>
<p>
Make sure there have Cmake lib or install it.<br />
</p>
<ul class="org-ul">
<li><p>
Ubuntu<br />
</p>
<div class="org-src-container">
<pre class="src src-shell">│ <span style="color: #41bf4f;">sudo</span> apt install cmake
│ <span style="color: #41bf4f;">sudo</span> apt install libtool-bin
</pre>
</div></li>
<li><p>
MacOs<br />
</p>
<div class="org-src-container">
<pre class="src src-shell">│ brew install cmake libtool gnuplot d2 ripgrep fzf terrastruct/tap/tala graphviz
</pre>
</div></li>
</ul>
<p>
At last run below, this will take few minutes. And it depends on the quality of your network.<br />
</p>
<div class="org-src-container">
<pre class="src src-shell">~/.emacs.doom/bin/doom install
~/.emacs.doom/bin/doom.cmd install
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org628726a" class="outline-2">
<h2 id="org628726a"><span class="section-number-2">3.</span> How to update</h2>
<div class="outline-text-2" id="text-3">
</div>
<div id="outline-container-org6e76f0e" class="outline-3">
<h3 id="org6e76f0e"><span class="section-number-3">3.1.</span> For brew</h3>
<div class="outline-text-3" id="text-3-1">
<div class="org-src-container">
<pre class="src src-shell">brew upgrade
brew update && brew upgrade emacs-mac && brew cleanup emacs-mac
</pre>
</div>
</div>
</div>
<div id="outline-container-org17b3aac" class="outline-3">
<h3 id="org17b3aac"><span class="section-number-3">3.2.</span> For doom project</h3>
<div class="outline-text-3" id="text-3-2">
<div class="org-src-container">
<pre class="src src-shell"><span style="color: #d4aaf0; font-weight: bold;">export</span> <span style="color: #2fd0db;">EMACS</span>=/Applications/Emacs.app/Contents/MacOS/EMACS
sh ~/.emacs.d/bin/doom upgrade
sh ~/.emacs.d/bin/doom install
sh ~/.emacs.d/bin/doom sync
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org7264219" class="outline-2">
<h2 id="org7264219"><span class="section-number-2">4.</span> Patches</h2>
<div class="outline-text-2" id="text-4">
</div>
<div id="outline-container-org81a97e1" class="outline-3">
<h3 id="org81a97e1"><span class="section-number-3">4.1.</span> transparent patch</h3>
<div class="outline-text-3" id="text-4-1">
<p>
It offer a window transparent solution which could transparent background but the font not.Note after install the patch, here have a alternative package to control the transparent value.<br />
</p>
<div class="org-src-container">
<pre class="src src-elisp"><span style="color: #30c489;">(</span><span style="color: #70a0ff; font-weight: bold;">use-package</span> transwin
│ <span style="color: #d4aaf0; font-weight: bold;">:config</span>
│ <span style="color: #70a0ff;">(</span><span style="color: #70a0ff; font-weight: bold;">setq</span> <span style="color: #2fd0db;">transwin-delta-alpha</span> <span style="color: #12b4ff;">5</span><span style="color: #70a0ff;">)</span>
│ <span style="color: #70a0ff;">(</span><span style="color: #70a0ff; font-weight: bold;">setq</span> <span style="color: #2fd0db;">transwin-parameter-alpha</span> <span style="color: #70a0ff; font-weight: bold;">'</span><span style="color: #12b4ff;">alpha-background</span><span style="color: #70a0ff;">)</span>
│ <span style="color: #d4aaf0; font-weight: bold;">:bind</span>
│ <span style="color: #70a0ff;">(</span><span style="color: #65d5a8;">"C-M-="</span> . transwin-inc<span style="color: #70a0ff;">)</span>
│ <span style="color: #70a0ff;">(</span><span style="color: #65d5a8;">"C-M--"</span> . transwin-dec<span style="color: #70a0ff;">)</span>
│ <span style="color: #70a0ff;">(</span><span style="color: #65d5a8;">"C-M-0"</span> . transwin-toggle<span style="color: #70a0ff;">)</span><span style="color: #30c489;">)</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org25ab717" class="outline-3">
<h3 id="org25ab717"><span class="section-number-3">4.2.</span> cursor animation</h3>
<div class="outline-text-3" id="text-4-2">
<p>
The awesome patch could make cursor more funny.But there have a bug,If you shift to full screen from a window state , there will remain a shadow of the current cursor which will stay here forever.I will make cursor in replace mode before shifting to full screen.This might makes it effect less more.<br />
</p>
</div>
</div>
<div id="outline-container-org2c322aa" class="outline-3">
<h3 id="org2c322aa"><span class="section-number-3">4.3.</span> how to</h3>
<div class="outline-text-3" id="text-4-3">
<p>
Here have a <a href="https://neoemacs.com/posts/emacs-patches/">tutorial</a> to apply patch if you are using emacs plus.<br />
</p>
<ol class="org-ol">
<li>Put the patches file under to `/opt/homebrew/Library/Taps/d12frosted/homebrew-emacs-plus/patches/emacs-30`<br /></li>
<li><p>
Modify `/opt/homebrew/Library/Taps/d12frosted/homebrew-emacs-plus/Formula/[email protected]`, around <span class="underline">local_patch</span>.<br />
There only have two terms to be filled in, one is patch name which referenced to the pathches directory, another is the pathchs `sha256` value.<br />
</p>
<div class="org-src-container">
<pre class="src src-ruby">│ │<span style="color: #eaa4a4; font-style: italic;">#</span>
│ │<span style="color: #eaa4a4; font-style: italic;"># </span><span style="color: #eaa4a4; font-style: italic;">Patches</span>
│ │<span style="color: #eaa4a4; font-style: italic;">#</span>
│ │opoo <span style="color: #65d5a8;">"The option --with-no-frame-refocus is not required anymore in emacs-plus@30."</span> <span style="color: #70a0ff; font-weight: bold;">if</span> build.with? <span style="color: #65d5a8;">"no-frame-refocus"</span>
│ │local_patch <span style="color: #65d5a8;">"fix-window-role"</span>, <span style="color: #12b4ff;">sha:</span> <span style="color: #65d5a8;">"1f8423ea7e6e66c9ac6dd8e37b119972daa1264de00172a24a79a710efcb8130"</span>
│ │local_patch <span style="color: #65d5a8;">"system-appearance"</span>, <span style="color: #12b4ff;">sha:</span> <span style="color: #65d5a8;">"9eb3ce80640025bff96ebaeb5893430116368d6349f4eb0cb4ef8b3d58477db6"</span>
│ │local_patch <span style="color: #65d5a8;">"poll"</span>, <span style="color: #12b4ff;">sha:</span> <span style="color: #65d5a8;">"31b76d6a2830fa3b6d453e3bbf5ec7259b5babf1d977b2bf88a6624fa78cb3e6"</span> <span style="color: #70a0ff; font-weight: bold;">if</span> build.with? <span style="color: #65d5a8;">"poll"</span>
│ │local_patch <span style="color: #65d5a8;">"round-undecorated-frame"</span>, <span style="color: #12b4ff;">sha:</span> <span style="color: #65d5a8;">"7451f80f559840e54e6a052e55d1100778abc55f98f1d0c038a24e25773f2874"</span>
│ │local_patch <span style="color: #65d5a8;">"cursor-animation"</span>, <span style="color: #12b4ff;">sha:</span> <span style="color: #65d5a8;">"812a934bd45dd4ee3311c1bc6681605364193bbd14ec05b9b847f9488bf989e2"</span>
│ │local_patch <span style="color: #65d5a8;">"ns-alpha-background"</span>, <span style="color: #12b4ff;">sha:</span> <span style="color: #65d5a8;">"6c174aff2602b64255ce8952f91302ede51e213be090f1b39e06913bbe0b086b"</span>
</pre>
</div>
<blockquote>
<p>
Notic: above sha value is out of date<br />
</p>
</blockquote></li>
<li>Just install emacs plus, you could use `brew reinstall`<br /></li>
</ol>
</div>
</div>
</div>
<div id="outline-container-orgeb5e261" class="outline-2">
<h2 id="orgeb5e261"><span class="section-number-2">5.</span> Private setting</h2>
<div class="outline-text-2" id="text-5">
<p>
Customize your private setting config in the config.el ; use <code>setq</code><br />
</p>
</div>
<div id="outline-container-orgadf7f53" class="outline-3">
<h3 id="orgadf7f53"><span class="section-number-3">5.1.</span> Font setting</h3>
<div class="outline-text-3" id="text-5-1">
<p>
Before start up,install fonts in the <a href="./neoemacs/font">./neoemacs/font</a> directory firstly.<br />
Cause different platform have different font name,after font installed there need a adjustment based on the fact.<br />
</p>
</div>
<ol class="org-ol">
<li><a id="orgebddd14"></a>setting on macos<br />
<div class="outline-text-4" id="text-5-1-1">
<div class="org-src-container">
<pre class="src src-elisp"><span style="color: #30c489;">(</span><span style="color: #70a0ff; font-weight: bold;">setq</span> <span style="color: #2fd0db;">doom-font</span> <span style="color: #70a0ff;">(</span><span style="color: #12b4ff;">font-spec</span> <span style="color: #d4aaf0; font-weight: bold;">:family</span> <span style="color: #65d5a8;">"victor Mono"</span> <span style="color: #d4aaf0; font-weight: bold;">:size</span> <span style="color: #12b4ff;">19</span> <span style="color: #70a0ff;">)</span><span style="color: #30c489;">)</span>
<span style="color: #30c489;">(</span><span style="color: #70a0ff; font-weight: bold;">defun</span> <span style="color: #7fce5f;">init-cjk-fonts</span><span style="color: #70a0ff;">()</span>
│ <span style="color: #70a0ff;">(</span><span style="color: #70a0ff; font-weight: bold;">dolist</span> <span style="color: #7fce5f;">(</span>charset <span style="color: #70a0ff; font-weight: bold;">'</span><span style="color: #2fd0db;">(</span>kana han cjk-misc bopomofo<span style="color: #2fd0db;">)</span><span style="color: #7fce5f;">)</span>
│ │ <span style="color: #7fce5f;">(</span><span style="color: #12b4ff;">set-fontset-font</span> <span style="color: #2fd0db;">(</span><span style="color: #12b4ff;">frame-parameter</span> nil <span style="color: #70a0ff; font-weight: bold;">'</span><span style="color: #12b4ff;">font</span><span style="color: #2fd0db;">)</span>
│ │ │ charset <span style="color: #2fd0db;">(</span><span style="color: #12b4ff;">font-spec</span> <span style="color: #d4aaf0; font-weight: bold;">:family</span> <span style="color: #65d5a8;">"HYXinRenWenSongW"</span> <span style="color: #d4aaf0; font-weight: bold;">:size</span> <span style="color: #12b4ff;">20</span><span style="color: #2fd0db;">)</span><span style="color: #7fce5f;">)</span><span style="color: #70a0ff;">)</span><span style="color: #30c489;">)</span>
<span style="color: #30c489;">(</span><span style="color: #12b4ff;">add-hook</span> <span style="color: #70a0ff; font-weight: bold;">'</span><span style="color: #2fd0db;">doom-init-ui-hook</span> <span style="color: #70a0ff; font-weight: bold;">'</span><span style="color: #12b4ff;">init-cjk-fonts</span><span style="color: #30c489;">)</span>
</pre>
</div>
</div>
</li>
<li><a id="org790b7d2"></a>setting on windows<br />
<div class="outline-text-4" id="text-5-1-2">
<div class="org-src-container">
<pre class="src src-elisp"><span style="color: #30c489;">(</span><span style="color: #70a0ff; font-weight: bold;">setq</span> <span style="color: #2fd0db;">doom-font</span> <span style="color: #70a0ff;">(</span><span style="color: #12b4ff;">font-spec</span> <span style="color: #d4aaf0; font-weight: bold;">:family</span> <span style="color: #65d5a8;">"victor Mono Medium"</span> <span style="color: #d4aaf0; font-weight: bold;">:size</span> <span style="color: #12b4ff;">24</span><span style="color: #70a0ff;">)</span><span style="color: #30c489;">)</span>
<span style="color: #30c489;">(</span><span style="color: #70a0ff; font-weight: bold;">defun</span> <span style="color: #7fce5f;">init-cjk-fonts</span><span style="color: #70a0ff;">()</span>
│ <span style="color: #70a0ff;">(</span><span style="color: #70a0ff; font-weight: bold;">dolist</span> <span style="color: #7fce5f;">(</span>charset <span style="color: #70a0ff; font-weight: bold;">'</span><span style="color: #2fd0db;">(</span>kana han cjk-misc bopomofo<span style="color: #2fd0db;">)</span><span style="color: #7fce5f;">)</span>
│ │ <span style="color: #7fce5f;">(</span><span style="color: #12b4ff;">set-fontset-font</span> <span style="color: #2fd0db;">(</span><span style="color: #12b4ff;">frame-parameter</span> nil <span style="color: #70a0ff; font-weight: bold;">'</span><span style="color: #12b4ff;">font</span><span style="color: #2fd0db;">)</span>
│ │ │ charset <span style="color: #2fd0db;">(</span><span style="color: #12b4ff;">font-spec</span> <span style="color: #d4aaf0; font-weight: bold;">:family</span> <span style="color: #65d5a8;">"汉仪新人文宋W"</span> <span style="color: #d4aaf0; font-weight: bold;">:size</span> <span style="color: #12b4ff;">26</span><span style="color: #2fd0db;">)</span><span style="color: #7fce5f;">)</span><span style="color: #70a0ff;">)</span><span style="color: #30c489;">)</span>
<span style="color: #30c489;">(</span><span style="color: #12b4ff;">add-hook</span> <span style="color: #70a0ff; font-weight: bold;">'</span><span style="color: #2fd0db;">doom-init-ui-hook</span> <span style="color: #70a0ff; font-weight: bold;">'</span><span style="color: #12b4ff;">init-cjk-fonts</span><span style="color: #30c489;">)</span>
</pre>
</div>
</div>
</li>
<li><a id="orgb6efe53"></a>install all-the-icons<br />
<div class="outline-text-4" id="text-5-1-3">
<p>
For the icons font, we need do below<br />
</p>
<ul class="org-ul">
<li>M-x install-package all-the-icons<br /></li>
<li>M-x all-the-icons-install-fonts<br /></li>
<li>M-x nerd-icons-install-fonts<br /></li>
</ul>
</div>
</li>
</ol>
</div>
<div id="outline-container-org6e80d8e" class="outline-3">
<h3 id="org6e80d8e"><span class="section-number-3">5.2.</span> Basic setting</h3>
<div class="outline-text-3" id="text-5-2">
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<caption class="t-bottom"><span class="table-number">Table 1:</span> neo-emacs basic setting</caption>
<colgroup>
<col class="org-left" />
<col class="org-left" />
<col class="org-left" />
<col class="org-left" />
</colgroup>
<tbody>
<tr>
<td class="org-left">variable</td>
<td class="org-left">default value</td>
<td class="org-left">config location</td>
<td class="org-left">description</td>
</tr>
<tr>
<td class="org-left">emacs-module-root</td>
<td class="org-left">/opt/homebrew/opt/emacs-plus@28/include</td>
<td class="org-left">config.el</td>
<td class="org-left">emcas module root</td>
</tr>
<tr>
<td class="org-left">display-line-numbers-type</td>
<td class="org-left">nil</td>
<td class="org-left">config.el</td>
<td class="org-left">show line number</td>
</tr>
<tr>
<td class="org-left">org-directory</td>
<td class="org-left">~/org/</td>
<td class="org-left">config.el</td>
<td class="org-left">org root path</td>
</tr>
<tr>
<td class="org-left">rg-exec-path</td>
<td class="org-left">system path</td>
<td class="org-left">-</td>
<td class="org-left">-</td>
</tr>
<tr>
<td class="org-left">fd-exec-path</td>
<td class="org-left">system path</td>
<td class="org-left">-</td>
<td class="org-left">-</td>
</tr>
<tr>
<td class="org-left">dot-exec-path</td>
<td class="org-left">/opt/homebrew/bin/dot</td>
<td class="org-left">modules/neo-emacs/org/config.el</td>
<td class="org-left">dot exec path</td>
</tr>
<tr>
<td class="org-left">pdflatex-exec-path</td>
<td class="org-left">/Library/TeX/texbin/pdflatex</td>
<td class="org-left">modules/neo-emacs/org/config.el</td>
<td class="org-left">pdflatex exec path</td>
</tr>
<tr>
<td class="org-left">org-roam-directory</td>
<td class="org-left">~/org/org-roam</td>
<td class="org-left">modules/neo-emacs/org/config.el</td>
<td class="org-left">org roam root path</td>
</tr>
<tr>
<td class="org-left">lsp-java-jdt-download-url</td>
<td class="org-left"><a href="http://1.117.167.195/download">http://1.117.167.195/download</a></td>
<td class="org-left">modules/neo-emacs/java/config.el</td>
<td class="org-left">jdt-server URL</td>
</tr>
<tr>
<td class="org-left">lsp-java-java-path</td>
<td class="org-left"> </td>
<td class="org-left">modules/neo-emacs/java/config.el</td>
<td class="org-left">java11 exec path</td>
</tr>
<tr>
<td class="org-left">lsp-maven-path</td>
<td class="org-left">~/.m2/settings.xml</td>
<td class="org-left">modules/neo-emacs/java/config.el</td>
<td class="org-left">maven setting path</td>
</tr>
<tr>
<td class="org-left">rime-user-data-dir</td>
<td class="org-left">~/Library/Rime/</td>
<td class="org-left">modules/neo-emacs/rime/config.el</td>
<td class="org-left">rime config input</td>
</tr>
<tr>
<td class="org-left">rime-librime-root</td>
<td class="org-left">~/.doom.d/myconfig/rime-macos/dist</td>
<td class="org-left">modules/neo-emacs/rime/config.el</td>
<td class="org-left">emacs-rime/blob/master/</td>
</tr>
</tbody>
</table>
<blockquote>
<p>
recentfile save default dir: ~/.emacs.d/.local/cache/recentf<br />
</p>
</blockquote>
</div>
</div>
</div>
<div id="outline-container-org3891a28" class="outline-2">
<h2 id="org3891a28"><span class="section-number-2">6.</span> Neoemacs modules</h2>
<div class="outline-text-2" id="text-6">
</div>
<div id="outline-container-org6c2a263" class="outline-3">
<h3 id="org6c2a263"><span class="section-number-3">6.1.</span> Lsp Java</h3>
<div class="outline-text-3" id="text-6-1">
<p>
<a href="./modules/neo-emacs/java/readme.html">futher more java readme</a><br />
Neo-Emacs will automatically download the jdtls from `lsp-java-jdt-download-url`, and now it’s located at <a href="https://www.eclipse.org/downloads/download.php?file=/jdtls/milestones/1.22.0/jdt-language-server-1.22.0-202304131553.tar.gz">jdt-language-server-1.22.0</a>.After that you could use all the features powered by eclipse.<br />
</p>
<ul class="org-ul">
<li><p>
Generate eclipse files<br />
Execute mvn command for generate eclipse .project & .classpath files on your project root path.<br />
</p>
<div class="org-src-container">
<pre class="src src-shell">│ mvn eclipse:clean eclipse:eclipse
</pre>
</div></li>
<li><p>
Support projectlombok plugin<br />
There have a default lombok.jar in <code>doom-user-dir/neoemacs</code> which you could replace by yourself.<br />
</p>
<div class="org-src-container">
<pre class="src src-elisp">│ <span style="color: #30c489;">(</span><span style="color: #70a0ff; font-weight: bold;">setq</span> lombok-jar-path <span style="color: #70a0ff;">(</span><span style="color: #12b4ff;">expand-file-name</span> <span style="color: #7fce5f;">(</span><span style="color: #12b4ff;">concat</span> <span style="color: #2fd0db;">doom-user-dir</span> <span style="color: #65d5a8;">"neoemacs/lombok.jar"</span><span style="color: #7fce5f;">)</span>
</pre>
</div></li>
<li><p>
Shotcuts/Key binding<br />
</p>
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<caption class="t-bottom"><span class="table-number">Table 2:</span> java mode key binding</caption>
<colgroup>
<col class="org-left" />
<col class="org-left" />
<col class="org-left" />
</colgroup>
<tbody>
<tr>
<td class="org-left">KEY</td>
<td class="org-left">FUNCTION</td>
<td class="org-left">DESCRIPTION</td>
</tr>
<tr>
<td class="org-left">SPC c i</td>
<td class="org-left">find-implementations</td>
<td class="org-left">find where sub class definition</td>
</tr>
<tr>
<td class="org-left">SPC c I</td>
<td class="org-left">lsp-java-open-super-implementation</td>
<td class="org-left">find where sub class definition</td>
</tr>
<tr>
<td class="org-left">SPC t e</td>
<td class="org-left">lsp-treemacs-java-deps-list</td>
<td class="org-left">find projects referenced libs</td>
</tr>
<tr>
<td class="org-left">SPC c f</td>
<td class="org-left">formart buffer/region</td>
<td class="org-left">goto type definition</td>
</tr>
<tr>
<td class="org-left">SPC c a</td>
<td class="org-left">lsp-execute-code-action</td>
<td class="org-left">code action</td>
</tr>
<tr>
<td class="org-left">SPC c d</td>
<td class="org-left">lsp-jump-definition</td>
<td class="org-left">jump to where symbol definition</td>
</tr>
<tr>
<td class="org-left">SPC c D</td>
<td class="org-left">lsp-jump-reference</td>
<td class="org-left">jump to where symbol referenced</td>
</tr>
<tr>
<td class="org-left">SPC c o</td>
<td class="org-left">lsp-java-organize-imports</td>
<td class="org-left">import require package</td>
</tr>
<tr>
<td class="org-left">SPC t s</td>
<td class="org-left">lsp-workspace-restart</td>
<td class="org-left">restart lsp server</td>
</tr>
</tbody>
</table></li>
<li>How to upgrade jdtls<br />
<ol class="org-ol">
<li>Customization your own eclipse jdtls project version by replace it’s binary pacage.<br /></li>
<li>Download the lastest jdt-language-server from <a href="https://download.eclipse.org/jdtls/milestones">https://download.eclipse.org/jdtls/milestones</a>.<br /></li>
<li>Replace file to ~/.emacs.d/.local/etc/lsp/eclipse.jdt.ls.<br /></li>
</ol></li>
</ul>
</div>
</div>
<div id="outline-container-org8835965" class="outline-3">
<h3 id="org8835965"><span class="section-number-3">6.2.</span> Vterm Shell</h3>
<div class="outline-text-3" id="text-6-2">
<p>
You’d better install vterm in a terminal environment case there might have error incompatible architecture.<br />
</p>
<div class="notice-warning" id="orgec7135d">
<p>
Vterm is not available on windows.<br />
Thus windows user have to use eshell as a downgrade plan.<br />
</p>
</div>
</div>
<ol class="org-ol">
<li><a id="orgf2c99ff"></a>Install vterm<br />
<div class="outline-text-4" id="text-6-2-1">
<p>
You’d better install vterm in a terminal environment case there might have error incompatible architecture.<br />
If vterm complie failed in emacs, we could complie it manually.<br />
</p>
<div class="org-src-container">
<pre class="src src-bash"><span style="color: #41bf4f;">cd</span> .emacs.d/.local/straight/build/vterm/
<span style="color: #41bf4f;">mkdir</span> -p build
<span style="color: #eaa4a4; font-style: italic;"># </span><span style="color: #eaa4a4; font-style: italic;">install cmake and libtool-bin</span>
brew install cmake libtool
<span style="color: #41bf4f;">mkdir</span> -p build
<span style="color: #41bf4f;">cd</span> build
cmake ..
<span style="color: #41bf4f;">make</span>
</pre>
</div>
</div>
</li>
<li><a id="orga045398"></a>Fish shell optimize<br />
<div class="outline-text-4" id="text-6-2-2">
<p>
If you are using fish shell ,fortunately there have some optimize config prepared for you.<br />
</p>
<ul class="org-ul">
<li>feature:<br />
<ul class="org-ul">
<li>use fish shell on emacs vterm.<br /></li>
<li><p>
use command `ff` %anyfile% on vterm will open %anyfile% in a new emacs buffer.It’s very useful.<br />
</p>
<div class="org-src-container">
<pre class="src src-shell">│ │ <span style="color: #70a0ff; font-weight: bold;">if</span> <span style="color: #30c489;">[</span> <span style="color: #65d5a8;">"</span><span style="color: #12b4ff;">$</span><span style="color: #2fd0db;">INSIDE_EMACS</span><span style="color: #65d5a8;">"</span> = <span style="color: #65d5a8;">'vterm'</span> <span style="color: #30c489;">]</span>
│ │ │ <span style="color: #70a0ff; font-weight: bold;">function</span> <span style="color: #7fce5f;">clear</span>
│ │ │ │ vterm_printf <span style="color: #65d5a8;">"51;Evterm-clear-scrollback"</span>;
│ │ │ │ tput clear;
│ │ │ end
│ │ end
│ │ <span style="color: #70a0ff; font-weight: bold;">function</span> <span style="color: #7fce5f;">vterm_cmd</span> --description <span style="color: #65d5a8;">'Run an Emacs command among the ones been defined in vterm-eval-cmds.'</span>
│ │ │ <span style="color: #d4aaf0; font-weight: bold;">set</span> -l vterm_elisp <span style="color: #30c489;">()</span>
│ │ │ <span style="color: #70a0ff; font-weight: bold;">for</span> arg<span style="color: #70a0ff; font-weight: bold;"> in</span> $<span style="color: #2fd0db;">argv</span>
│ │ │ │ <span style="color: #d4aaf0; font-weight: bold;">set</span> -a vterm_elisp <span style="color: #30c489;">(</span>printf <span style="color: #65d5a8;">'"%s" '</span> <span style="color: #70a0ff;">(</span>string replace -a -r <span style="color: #65d5a8;">'([\\\\"])'</span> <span style="color: #65d5a8;">'\\\\\\\\$1'</span> $<span style="color: #2fd0db;">arg</span><span style="color: #70a0ff;">)</span><span style="color: #30c489;">)</span>
│ │ │ end
│ │ │ vterm_printf <span style="color: #65d5a8;">'51;E'</span><span style="color: #30c489;">(</span>string join <span style="color: #65d5a8;">''</span> $<span style="color: #2fd0db;">vterm_elisp</span><span style="color: #30c489;">)</span>
│ │ end
│ │ <span style="color: #70a0ff; font-weight: bold;">function</span> <span style="color: #7fce5f;">ff</span>
│ │ │ <span style="color: #d4aaf0; font-weight: bold;">set</span> -q argv<span style="color: #30c489;">[</span><span style="color: #12b4ff;">1</span><span style="color: #30c489;">]</span>; or set argv<span style="color: #30c489;">[</span><span style="color: #12b4ff;">1</span><span style="color: #30c489;">]</span> <span style="color: #65d5a8;">"."</span>
│ │ │ vterm_cmd find-file <span style="color: #30c489;">(</span>realpath <span style="color: #65d5a8;">"</span><span style="color: #12b4ff;">$</span><span style="color: #2fd0db;">argv</span><span style="color: #65d5a8;">"</span><span style="color: #30c489;">)</span>
│ │ end
</pre>
</div></li>
</ul></li>
<li><p>
http proxy<br />
In fact there have two different config ,first one for vterm and another for emacs inner plugins.<br />
In vterm the http proxy be effected by `~/.config/fish/config.fish`,you could config it like this.<br />
</p>
<div class="org-src-container">
<pre class="src src-shell">│ <span style="color: #d4aaf0; font-weight: bold;">set</span> -x http_proxy http://vpn.local.com:10887
│ <span style="color: #d4aaf0; font-weight: bold;">set</span> -x https_proxy http://vpn.local.com:10887
│ <span style="color: #d4aaf0; font-weight: bold;">set</span> -x no_proxy <span style="color: #65d5a8;">".aliyun.com,192.168.0.0/16,137.239.155.184"</span>
</pre>
</div>
<p>
When you are using emacs lisp program such as restclient, you could config proxy like this.<br />
The difference is wildcard<br />
</p>
<div class="org-src-container">
<pre class="src src-elisp">│ │<span style="color: #30c489;">(</span><span style="color: #70a0ff; font-weight: bold;">defun</span> <span style="color: #7fce5f;">convert-to-regex</span> <span style="color: #70a0ff;">(</span>str<span style="color: #70a0ff;">)</span>
│ │<span style="color: #70a0ff;">(</span><span style="color: #70a0ff; font-weight: bold;">let*</span> <span style="color: #7fce5f;">(</span><span style="color: #2fd0db;">(</span>joined <span style="color: #30c489;">(</span><span style="color: #12b4ff;">replace-regexp-in-string</span> <span style="color: #65d5a8;">","</span> <span style="color: #65d5a8;">"\\\\|"</span> str<span style="color: #30c489;">)</span><span style="color: #2fd0db;">)</span>
│ │ │ <span style="color: #2fd0db;">(</span>wrapped <span style="color: #30c489;">(</span><span style="color: #12b4ff;">concat</span> <span style="color: #65d5a8;">"^</span><span style="color: #d0d24f;">\\</span><span style="color: #ff6f6f;">(</span><span style="color: #65d5a8;">"</span> joined <span style="color: #65d5a8;">"</span><span style="color: #d0d24f;">\\</span><span style="color: #ff6f6f;">)</span><span style="color: #65d5a8;">"</span><span style="color: #30c489;">)</span><span style="color: #2fd0db;">)</span><span style="color: #7fce5f;">)</span>
│ │wrapped<span style="color: #70a0ff;">)</span><span style="color: #30c489;">)</span>
│ │<span style="color: #30c489;">(</span><span style="color: #70a0ff; font-weight: bold;">setq</span> <span style="color: #2fd0db;">url-proxy-services</span> <span style="color: #70a0ff; font-weight: bold;">`</span><span style="color: #70a0ff;">(</span><span style="color: #7fce5f;">(</span><span style="color: #65d5a8;">"http"</span> .<span style="color: #65d5a8;">"vpn.local.com:10887"</span><span style="color: #7fce5f;">)</span>
│ │ │ <span style="color: #7fce5f;">(</span><span style="color: #65d5a8;">"https"</span> .<span style="color: #65d5a8;">"vpn.local.com:10887"</span><span style="color: #7fce5f;">)</span>
│ │ │ <span style="color: #7fce5f;">(</span><span style="color: #65d5a8;">"no_proxy"</span> . ,<span style="color: #2fd0db;">(</span><span style="color: #7fce5f;">convert-to-regex</span> <span style="color: #65d5a8;">".*aliyun.com,192.168.0.0/16,137.239.155.184"</span><span style="color: #2fd0db;">)</span><span style="color: #7fce5f;">)</span><span style="color: #70a0ff;">)</span><span style="color: #30c489;">)</span>
</pre>
</div></li>
<li><p>
How to display the command’s time on fish shell ?<br />
</p>
<div class="org-src-container">
<pre class="src src-shell"><span class="linenr">1: </span>│ funced fish_right_prompt -i
<span class="linenr">2: </span>│ <span style="color: #70a0ff; font-weight: bold;">function</span> <span style="color: #7fce5f;">fish_right_prompt</span>
<span class="linenr">3: </span>│ <span style="color: #eaa4a4; font-style: italic;"># </span><span style="color: #eaa4a4; font-style: italic;">显示当前时间</span>
<span class="linenr">4: </span>│ <span style="color: #41bf4f;">echo</span> -n <span style="color: #30c489;">(</span><span style="color: #41bf4f;">date</span> +<span style="color: #65d5a8;">"%H:%M:%S"</span><span style="color: #30c489;">)</span>
<span class="linenr">5: </span>│ end
<span class="linenr">6: </span>│ funcsave fish_right_prompt
</pre>
</div></li>
</ul>
</div>
</li>
<li><a id="org4556874"></a>Usage<br />
<div class="outline-text-4" id="text-6-2-3">
<ul class="org-ul">
<li>Being with eshell<br />
Eshell have a most wanted feature was <b>quickrun-eshell</b> which have a fast reload function after shell is runinng,you just use <code>C-c C-c</code> to stop it and use <b>r</b> to return you shell script file.It’s pretty convenient.<br /></li>
<li><p>
Key Binding<br />
</p>
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
<col class="org-left" />
<col class="org-left" />
<col class="org-left" />
</colgroup>
<tbody>
<tr>
<td class="org-left">KEY</td>
<td class="org-left">FUNCTION</td>
<td class="org-left">DESCRIPTION</td>
</tr>
<tr>
<td class="org-left">SPC v v</td>
<td class="org-left">projectile-run-vterm</td>
<td class="org-left">open vterm window base on the project root path</td>
</tr>
<tr>
<td class="org-left">SPC v p</td>
<td class="org-left">vterm-send-start</td>
<td class="org-left">enable vterm screen roll</td>
</tr>
<tr>
<td class="org-left">SPC v s</td>
<td class="org-left">vterm-send-stop</td>
<td class="org-left">disable vterm screen roll</td>
</tr>
</tbody>
</table></li>
</ul>
</div>
</li>
</ol>
</div>
<div id="outline-container-orge12ac5d" class="outline-3">
<h3 id="orge12ac5d"><span class="section-number-3">6.3.</span> Ejc Sql</h3>
<div class="outline-text-3" id="text-6-3">
<ul class="org-ul">
<li><p>
The privacy configuration<br />
In here you could save any connections in your setting config.<br />
But where should the setting located especially for our Emacs config project with a public github repository? There have a privacy path which is excluded in the public repository named <b>user-private-dir</b>, You could config your connection’s account/password here for safely.<br />
There default load a db-work module which having your privacy config .<br />
</p>
<div class="org-src-container">
<pre class="src src-elisp">│ │ <span style="color: #30c489;">(</span><span style="color: #12b4ff;">add-to-list</span> <span style="color: #70a0ff; font-weight: bold;">'</span><span style="color: #2fd0db;">load-path</span> user-private-dir <span style="color: #30c489;">)</span>
│ │ <span style="color: #30c489;">(</span><span style="color: #70a0ff; font-weight: bold;">use-package!</span> db-work <span style="color: #30c489;">)</span>
</pre>
</div></li>
<li><p>
Config your particular db connection<br />
</p>
<div class="org-src-container">
<pre class="src src-lisp">│ │(use-package ejc-sql
│ │<span style="color: #d4aaf0; font-weight: bold;">:commands</span> ejc-sql-mode ejc-connect
│ │<span style="color: #d4aaf0; font-weight: bold;">:config</span>
│ │(setq clomacs-httpd-default-port <span style="color: #12b4ff;">18090</span>)
│ │(ejc-create-connection <span style="color: #65d5a8;">"connection-name"</span>
│ │ │ <span style="color: #d4aaf0; font-weight: bold;">:classpath</span> <span style="color: #65d5a8;">"~/.m2/repository/mysql/mysql-connector-java/8.0.17/</span>
│<span style="color: #65d5a8;"> │ │ │ │ │ │ mysql-connector-java-8.0.17.jar"</span>
│ │ │ <span style="color: #d4aaf0; font-weight: bold;">:connection-uri</span> <span style="color: #65d5a8;">"jdbc:mysql://localhost/user?useSSL=false&user=root&password=pwd"</span>
│ │ │ <span style="color: #d4aaf0; font-weight: bold;">:separator</span> <span style="color: #65d5a8;">"</?\.*>"</span> )
│ │)
│ │(<span style="color: #70a0ff; font-weight: bold;">provide</span> '<span style="color: #12b4ff;">db-work</span>)
</pre>
</div></li>
<li><p>
Write Sql file<br />
Before try to use ejc sql, firstly create a sql file which named with a suffix <b>.sql</b>, cause emacs will turn on the sql minor mode so that ejc-sql could works well. And then use <code>SPC e c</code> to connect a particular database which you have configurated. Emacs will popup a minibuffer listing candidates which show you the <b>connection-name</b>.<br />
Secondarily, write your testing sql content which surrounded by a tag, cause we have configurated <b>:separator</b> by a syntax meaning tag in order to execute a single sql rather than to choose it.For sure you could make any comment with the tag’s schema.<br />