-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathemacs.html
10428 lines (9334 loc) · 513 KB
/
emacs.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>
<!-- 2021-05-01 Sa 13:15 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title></title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Tom" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.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 #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
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-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; }
.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 { width: 90%; }
/*]]>*/-->
</style>
<script type="text/javascript">
/*
@licstart The following is the entire license notice for the
JavaScript code in this tag.
Copyright (C) 2012-2013 Free Software Foundation, Inc.
The JavaScript code in this tag is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License (GNU GPL) as published by the Free Software
Foundation, either version 3 of the License, or (at your option)
any later version. The code is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
As additional permission under GNU GPL version 3 section 7, you
may distribute non-source (e.g., minimized or compacted) forms of
that code without the copy of the GNU GPL normally required by
section 4, provided you include this license notice and a URL
through which recipients can access the Corresponding Source.
@licend The above is the entire license notice
for the JavaScript code in this tag.
*/
<!--/*--><![CDATA[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</script>
</head>
<body>
<div id="content">
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#orgca23a83">1. Introduction</a></li>
<li><a href="#org12b67c5">2. Config Log, Trivia, Notes, Changes</a>
<ul>
<li><a href="#org175b172">2.1. Changelog</a></li>
<li><a href="#orgd980427">2.2. <span class="todo TODO">TODO</span> </a></li>
<li><a href="#org9e19170">2.3. Parking Lot / Snippets</a>
<ul>
<li><a href="#orgc7e0259">2.3.1. buffer-local hook</a></li>
</ul>
</li>
<li><a href="#org38567ce">2.4. .emacs config version</a></li>
</ul>
</li>
<li><a href="#org03939f5">3. System Specifics</a>
<ul>
<li><a href="#orgd6226f1">3.1. Global init file+dir vars, portable</a></li>
<li><a href="#orge74e7c4">3.2. Shortcut Mode - mode specific help about my own customizations</a></li>
<li><a href="#org491fc9b">3.3. Fontlock-mode - use syntax highlighting on graphical displays</a></li>
<li><a href="#org1fc5603">3.4. line-cursor in console</a></li>
<li><a href="#org5145e0b">3.5. Backup Config</a></li>
<li><a href="#org7771b39">3.6. console backspace fix</a></li>
<li><a href="#org2ec7557">3.7. hide menu- and tool-bar</a></li>
<li><a href="#orgcb01af2">3.8. stay silent on startup</a></li>
<li><a href="#org858e9d5">3.9. y means yes</a></li>
<li><a href="#org2f41c16">3.10. show col in modeline</a></li>
<li><a href="#orgf9b1aba">3.11. file or buffer in title</a></li>
<li><a href="#org9aff8c5">3.12. avoid invalid files</a></li>
<li><a href="#orga4aa3c4">3.13. prepare load-path</a></li>
<li><a href="#orgb10a9bf">3.14. Hydra</a></li>
<li><a href="#orgc67eaac">3.15. byte-compile all of them, if needed</a></li>
<li><a href="#org970a297">3.16. increase fontsize with ctrl-+ and ctrl--</a></li>
<li><a href="#orgcaa0c3d">3.17. WINDOW management stuff</a>
<ul>
<li><a href="#org28deae0">3.17.1. resize windows by keyboard</a></li>
<li><a href="#org7d74ca0">3.17.2. switch windows with MS-WINDOWS key</a></li>
<li><a href="#org263bafa">3.17.3. M-o switch window or buffer</a></li>
<li><a href="#org904b6eb">3.17.4. Split window to 4 parts</a></li>
<li><a href="#orgbc09849">3.17.5. Remember and Restore Window Configurations - winner mode</a></li>
</ul>
</li>
<li><a href="#org8572ada">3.18. re-read a modified buffer</a></li>
<li><a href="#orgb9a20d8">3.19. global TAB/Indent config</a></li>
<li><a href="#org1db95c4">3.20. handy aliases</a></li>
<li><a href="#org7b30850">3.21. various settings</a></li>
<li><a href="#orge52ff88">3.22. load imenu</a></li>
<li><a href="#orgcc5be60">3.23. copy/paste Config</a></li>
<li><a href="#org348d202">3.24. use more mem</a></li>
<li><a href="#org21d9b27">3.25. better file name completion</a></li>
<li><a href="#org5a8ed25">3.26. abbreviations</a></li>
<li><a href="#org94f48b8">3.27. meaningful names for buffers with the same name</a></li>
<li><a href="#orgb4209ae">3.28. packages</a></li>
<li><a href="#org6ac81b9">3.29. My own global variables</a></li>
<li><a href="#orgbbee73a">3.30. More scratch space</a>
<ul>
<li><a href="#orgfd88c99">3.30.1. Text scratch</a></li>
<li><a href="#org78a10be">3.30.2. Autoscratch</a></li>
<li><a href="#org54bbb5a">3.30.3. Persistent Scratch</a></li>
</ul>
</li>
<li><a href="#org0a83d1e">3.31. Recenter config</a></li>
</ul>
</li>
<li><a href="#orga208ea6">4. Global Key Bindings</a>
<ul>
<li><a href="#org9f5d04c">4.1. c-h != delete</a></li>
<li><a href="#org01c8ac1">4.2. general keys (re-)mappings</a></li>
<li><a href="#orgf836054">4.3. display a list of my own global key bindings and aliases</a></li>
</ul>
</li>
<li><a href="#org1c11627">5. Productivity Functions</a>
<ul>
<li><a href="#orgb2f7324">5.1. goto line with tmp line numbers</a></li>
<li><a href="#org50ef33c">5.2. invert fore- and background</a></li>
<li><a href="#org666e00e">5.3. Some useful bindings for Home and End keys Hit the key once to</a></li>
<li><a href="#orgbdb3ebb">5.4. percent function</a></li>
<li><a href="#org73d1e03">5.5. Simulate vi's % (percent) function</a></li>
<li><a href="#orgee4bdea">5.6. Move region</a></li>
<li><a href="#org1ed413d">5.7. comment-uncomment region with one key binding</a></li>
<li><a href="#orga2c274a">5.8. search for symbol at point</a></li>
<li><a href="#orgebf7f5e">5.9. Window Margin</a></li>
<li><a href="#orgd9b8ff4">5.10. Fill and justify a paragraph</a></li>
<li><a href="#orgb03f9b1">5.11. Make a read-only copy of the current buffer</a></li>
<li><a href="#orge44c137">5.12. Cleanup, close all windows and kill all buffers</a></li>
<li><a href="#orgfb95865">5.13. Cleanup current buffer</a></li>
<li><a href="#orgf784ada">5.14. Remove Umlauts and other crab in current buffer</a></li>
<li><a href="#org6f08c2c">5.15. Better newline(s)</a></li>
<li><a href="#org40f3b88">5.16. Mouse Rectangle</a></li>
<li><a href="#org05fe262">5.17. DOS <=> UNIX conversion helpers</a></li>
<li><a href="#org1d2a610">5.18. helper do add the same thing to multiple mode hooks</a></li>
<li><a href="#org716474f">5.19. helper to catch load errors</a></li>
<li><a href="#org01e1bd9">5.20. Alignment Wrappers</a></li>
<li><a href="#org381ada7">5.21. String Helpers</a></li>
</ul>
</li>
<li><a href="#orgeef6f86">6. Modes</a>
<ul>
<li><a href="#org4d87610">6.1. Programming Languages</a>
<ul>
<li><a href="#org4c00242">6.1.1. VALA</a></li>
<li><a href="#orgc2c31d3">6.1.2. rust mode</a></li>
<li><a href="#orgaad8f72">6.1.3. python mode</a></li>
<li><a href="#org586f030">6.1.4. Shell-Script Mode</a></li>
<li><a href="#org42adf73">6.1.5. cperl mode</a></li>
<li><a href="#org3bbbe92">6.1.6. Paredit for lisp only</a></li>
<li><a href="#org5daac4e">6.1.7. Smart Parens</a></li>
<li><a href="#org793f9f5">6.1.8. ETAGS</a></li>
<li><a href="#org399565c">6.1.9. Go Lang</a></li>
</ul>
</li>
<li><a href="#org7f68b34">6.2. Text Modes</a>
<ul>
<li><a href="#org87df60f">6.2.1. sgml</a></li>
<li><a href="#orgd81b540">6.2.2. web-mode (JS, HTML, CSS combined)</a></li>
<li><a href="#orgdd5daf7">6.2.3. Cisco Mode</a></li>
<li><a href="#orgfa4df1a">6.2.4. Markdown</a></li>
<li><a href="#orgabc03ca">6.2.5. POD mode</a></li>
<li><a href="#org21f980b">6.2.6. conf-mode</a></li>
<li><a href="#orgb1c7026">6.2.7. Config::General mode</a></li>
<li><a href="#orgb61f2e1">6.2.8. Xmodmap Mode</a></li>
<li><a href="#org6f66f7d">6.2.9. MMM Mode</a></li>
<li><a href="#orgbf828c3">6.2.10. Yaml Mode</a></li>
</ul>
</li>
<li><a href="#org36b1524">6.3. Text Manupilation</a>
<ul>
<li><a href="#org37f300e">6.3.1. expand-region</a></li>
<li><a href="#orge98b15d">6.3.2. Mark, Copy, Yank Things</a></li>
<li><a href="#org1e99d01">6.3.3. change-inner</a></li>
<li><a href="#orga0d03c2">6.3.4. Rotate text</a></li>
<li><a href="#org8cb32f9">6.3.5. Word wrapping</a></li>
<li><a href="#orgd5bbf4a">6.3.6. Viking Mode</a></li>
<li><a href="#org2f83c5d">6.3.7. HTMLize</a></li>
<li><a href="#org7ebf55c">6.3.8. iEdit (inline edit multiple searches)</a></li>
</ul>
</li>
<li><a href="#orgdac7240">6.4. Interactives</a>
<ul>
<li><a href="#org1d14a75">6.4.1. eShell stuff, or if interactive stuff is needed, use ansi-term</a></li>
<li><a href="#org595dd72">6.4.2. Emacs LISP interactive</a></li>
<li><a href="#orgdfa3a7c">6.4.3. el2markdown</a></li>
<li><a href="#orgcca9912">6.4.4. tramp mode</a></li>
<li><a href="#org264e425">6.4.5. org mode</a></li>
<li><a href="#org3308fc0">6.4.6. org agenda mode</a></li>
<li><a href="#org182c38f">6.4.7. org table mode</a></li>
<li><a href="#orgb4fd415">6.4.8. org mode slideshows</a></li>
<li><a href="#org0dd6e1f">6.4.9. outshine mode</a></li>
<li><a href="#orgaacc093">6.4.10. outline mode</a></li>
<li><a href="#org9cce2a1">6.4.11. narrowing (no mode but fits here)</a></li>
<li><a href="#orgef20fc9">6.4.12. ANSI-TERM (inferior shells/interpreters and REPLs)</a></li>
<li><a href="#org4d46d6e">6.4.13. Puppet</a></li>
<li><a href="#org13759ae">6.4.14. Novel Mode - Screen Reader</a></li>
<li><a href="#orgc06e29d">6.4.15. Macro Math</a></li>
<li><a href="#orgc7adbb3">6.4.16. Common-Lisp (SLIME)</a></li>
<li><a href="#org8694a3b">6.4.17. INFO Mode</a></li>
<li><a href="#org05009ac">6.4.18. calc et al.</a></li>
<li><a href="#org5e61a75">6.4.19. MACROs</a></li>
<li><a href="#org6ce8c6d">6.4.20. EWW browser stuff</a></li>
<li><a href="#org3769139">6.4.21. Firestarter</a></li>
<li><a href="#orgf7b647a">6.4.22. Tabulated List Mode</a></li>
<li><a href="#org415695d">6.4.23. Help Mode</a></li>
<li><a href="#org095cda7">6.4.24. Suggest Mode</a></li>
<li><a href="#orgd744fec">6.4.25. Followcursor Mode</a></li>
<li><a href="#org98a039d">6.4.26. RCS Mode</a></li>
<li><a href="#orgeef2915">6.4.27. Magit</a></li>
<li><a href="#orga69858c">6.4.28. Dired</a></li>
<li><a href="#org29a5953">6.4.29. Ediff Config</a></li>
<li><a href="#org6dc9a1f">6.4.30. Smerge Config</a></li>
<li><a href="#orgcc90b8a">6.4.31. Projectile</a></li>
<li><a href="#org41fb6c7">6.4.32. Occur</a></li>
<li><a href="#org977f4e2">6.4.33. Window Hydra</a></li>
<li><a href="#orgcb8f76f">6.4.34. Eyebrowse Workspaces</a></li>
<li><a href="#orgf0465a8">6.4.35. Highlighting Indentation</a></li>
</ul>
</li>
<li><a href="#org0dd293d">6.5. Emacs Interface</a>
<ul>
<li><a href="#org5b2ea16">6.5.1. Parens</a></li>
<li><a href="#orgf012fe3">6.5.2. highlight todo keywords (such as <i>FIXME</i>)</a></li>
<li><a href="#org0b7cdde">6.5.3. UNDO Tree Mode</a></li>
<li><a href="#orgfebbe55">6.5.4. Smarter M-x Mode (smex)</a></li>
<li><a href="#org593e3c6">6.5.5. Smarter Search</a></li>
<li><a href="#org43ae527">6.5.6. Which Func</a></li>
<li><a href="#org46c1a5e">6.5.7. Show current-line in the Fringe</a></li>
<li><a href="#org3d68b6b">6.5.8. Recent Files</a></li>
<li><a href="#org238949b">6.5.9. IDO mode</a></li>
<li><a href="#org5b9a705">6.5.10. Save cursor position</a></li>
<li><a href="#org84a70ae">6.5.11. DoReMi experimentation</a></li>
<li><a href="#orge147b38">6.5.12. Hightligt TABs</a></li>
<li><a href="#orgc172036">6.5.13. Browse kill-ring</a></li>
<li><a href="#org9f7792a">6.5.14. goto-last-change</a></li>
<li><a href="#org8ec5a23">6.5.15. Bookmarks</a></li>
<li><a href="#org43c0494">6.5.16. which-key</a></li>
<li><a href="#org97d098a">6.5.17. iBuffer mode</a></li>
<li><a href="#org19822ef">6.5.18. Printing</a></li>
<li><a href="#orga40232d">6.5.19. Beacon mode (pointer blink)</a></li>
</ul>
</li>
<li><a href="#orgfbd2d87">6.6. mode-line setup (must be the last mode)</a></li>
</ul>
</li>
<li><a href="#org91a9200">7. Emacs Autoconfig / Customize group / final stuff</a>
<ul>
<li><a href="#orge918444">7.1. font faces</a></li>
<li><a href="#org0e03ca5">7.2. emacs server</a></li>
<li><a href="#org0a9ba17">7.3. variables</a></li>
<li><a href="#org669ec72">7.4. done</a></li>
</ul>
</li>
</ul>
</div>
</div>
<p>
Toms Emacs Config - portable - version ("20210501.01") -*-emacs-lisp-*-
</p>
<div id="outline-container-orgca23a83" class="outline-2">
<h2 id="orgca23a83"><span class="section-number-2">1</span> Introduction</h2>
<div class="outline-text-2" id="text-1">
<p>
This is my emacs config, it is more than twenty years old. It
mostly contains stuff implemented by myself, but there are also
snippets I found here and there. The config will probably not be
usefull for anyone else but myself.
</p>
<p>
If you're reading the html exported version: be advised, that I do
NOT maintain my emacs config with "literate programming". Instead I
maintain a plain old .emacs file, which I use at home and work, on
windows, linux and freebsd, console or X11. I use outshine minor
mode to organize my config and I use outorg to export it to org
mode and from there to html.
</p>
<p>
Also I don't use any packaging mechanism, instead I download all
the required elisp files manually and update them only if
required. There's a melpa config toggle though, which I only use to
try out new modes. I distribute my .emacs config along with the
lisp directory to all systems where I need it using a Makefile and
scp. The reason is that I work on a couple of systems without
direct internet access, where packaging or git don't work. So, I
don't use these things nowhere. It's ok for me, I'm used to it.
</p>
<p>
Another thing you might wonder about are my key bindings or
(sometimes) the lack thereof. My problem with key bindings is that
I don't have any useful prefixes left. I am using ONLY commandline
tools, my window manager is Xmonad, I use screen, bash and
mutt. The only applications where I use the mouse is firefox and
gimp. So, it is very hard to avoid conflicts AND memoize new key
bindings. Some key bindings are so deeply wired into muscle memory
that I could use them while drunk or dying.
</p>
<p>
Therefore I use lots of aliases in emacs for not-so-regular used
functions, which turned out to be sometimes easier to type than an
actual key binding.
</p>
<p>
The html export has been created with the function
outshine-to-html, written by myself, see below.
</p>
</div>
</div>
<div id="outline-container-org12b67c5" class="outline-2">
<h2 id="org12b67c5"><span class="section-number-2">2</span> Config Log, Trivia, Notes, Changes</h2>
<div class="outline-text-2" id="text-2">
</div><div id="outline-container-org175b172" class="outline-3">
<h3 id="org175b172"><span class="section-number-3">2.1</span> Changelog</h3>
<div class="outline-text-3" id="text-2-1">
<p>
20160420.03:
</p>
<ul class="org-ul">
<li>started with Changelog and outshine mode</li>
<li>fixed tabs</li>
<li>reorganized keys</li>
<li>added new goto line func</li>
</ul>
<p>
20160421.01:
</p>
<ul class="org-ul">
<li>added smex</li>
<li>added show-keys()</li>
<li>added redo</li>
<li>ssh et. al. interactive in eshell</li>
<li>added recompile()</li>
</ul>
<p>
20160421.02:
</p>
<ul class="org-ul">
<li>added dividers</li>
<li>using org headers</li>
<li>better show-keys()</li>
</ul>
<p>
20160421.03:
</p>
<ul class="org-ul">
<li>added windows support</li>
</ul>
<p>
20160421.04:
</p>
<ul class="org-ul">
<li>added elisp repl support</li>
</ul>
<p>
20160424.01:
</p>
<ul class="org-ul">
<li>added custom modeline</li>
<li>added which-func-mode</li>
<li>shortened some major mode names</li>
<li>added diminish for shorter minor mode names</li>
<li>added better printing menu</li>
</ul>
<p>
20160425.01:
</p>
<ul class="org-ul">
<li>fixed ielm integration</li>
<li>C-x e = eval (buffer|region)</li>
<li>C-x C-e = send (buffer|region) to ielm and eval there</li>
</ul>
<p>
20160425.02:
</p>
<ul class="org-ul">
<li>fix word wrapping</li>
</ul>
<p>
20160426.01:
</p>
<ul class="org-ul">
<li>fixed mode-line config 4 win emacs</li>
<li>added M-<up|down> move-region</li>
</ul>
<p>
20160426.01:
</p>
<ul class="org-ul">
<li>added markdown</li>
</ul>
<p>
20160427.01+02:
</p>
<ul class="org-ul">
<li>cosmetics</li>
</ul>
<p>
20160428.01:
</p>
<ul class="org-ul">
<li>fringe cursor</li>
</ul>
<p>
20160429.01:
</p>
<ul class="org-ul">
<li>file name completion</li>
<li>C-# finally, search for symbol at point</li>
<li>C-c C-c now comments or uncomments regios or line, whatever is current</li>
</ul>
<p>
20160501.01:
</p>
<ul class="org-ul">
<li>no outshine minor in python</li>
<li>added recent files support</li>
</ul>
<p>
20160501.02:
</p>
<ul class="org-ul">
<li>added margin() function, no key binding though</li>
</ul>
<p>
20160503.01:
</p>
<ul class="org-ul">
<li>added C-q fill+justify paragraph macro</li>
<li>added alias 'i' for info manuals</li>
</ul>
<p>
20160503.02:
</p>
<ul class="org-ul">
<li>added 'cp to create read-only buffer copy</li>
</ul>
<p>
20160504.01:
</p>
<ul class="org-ul">
<li>better fringe, now also inversed with C-c i</li>
</ul>
<p>
20160505.01:
</p>
<ul class="org-ul">
<li>added electric-align mode</li>
<li>better outline header colors</li>
<li>no more line numbers in sk occur buffer</li>
</ul>
<p>
20160507.01:
</p>
<ul class="org-ul">
<li>disable electric-align-momde (broken), using M-x align instead</li>
<li>hightlighting TABs with extra font</li>
</ul>
<p>
20160509.01:
</p>
<ul class="org-ul">
<li>fixed margin()</li>
<li>discovered that C-x 0 deletes current window, god did I miss this one!</li>
</ul>
<p>
20160510.01:
</p>
<ul class="org-ul">
<li>added kill-all-buffers()</li>
</ul>
<p>
20160510.02:
</p>
<ul class="org-ul">
<li>no more load-file</li>
<li>added C-c [wlpa]: easy copy things at point
without marking them</li>
</ul>
<p>
20160511.01:
</p>
<ul class="org-ul">
<li>better buffer names with uniquify</li>
</ul>
<p>
20160511.02:
</p>
<ul class="org-ul">
<li>copy-* functions now blink region</li>
<li>added del-* functions, bound to C-d:
press multiple times to delete word, line, paragraph, buffer</li>
</ul>
<p>
20160513.01:
</p>
<ul class="org-ul">
<li>fixed END key func</li>
</ul>
<p>
20160516.01:
</p>
<ul class="org-ul">
<li>removed C-d stuff, replaced with vikiing-mode</li>
</ul>
<p>
20160517.01:
</p>
<ul class="org-ul">
<li>changed highlight face</li>
<li>enabled debug-on-error in lispmode</li>
<li>enabled IDO mode globally, I just tend to love love love it</li>
</ul>
<p>
20160517.02:
</p>
<ul class="org-ul">
<li>added workgroup.el, started experimenting</li>
<li>enabled Super<sub>L</sub> (for workgroups)</li>
</ul>
<p>
20160519.01:
</p>
<ul class="org-ul">
<li>fixed write-file, now ido mode is disabled for this one.</li>
</ul>
<p>
20160520.01:
</p>
<ul class="org-ul">
<li>no x-sel on windows (C-v+C-c => emacs doesn't work anymore otherwise)</li>
<li>added eldoc mode to elisp hook</li>
</ul>
<p>
20160520.02:
</p>
<ul class="org-ul">
<li>added novel-mode, for better reading</li>
</ul>
<p>
20160522.01:
</p>
<ul class="org-ul">
<li>added vi's % jump paren emulation</li>
<li>enhanced novel-mode</li>
<li>enabled save-place mode which is VERY useful in combination with
novel-mode</li>
</ul>
<p>
20160523.01:
</p>
<ul class="org-ul">
<li>detached novel-mode into its own module, maintain on github
enabled with C-n</li>
</ul>
<p>
20160526.01:
</p>
<ul class="org-ul">
<li>added toggle-melpa</li>
</ul>
<p>
20160527.01:
</p>
<ul class="org-ul">
<li>added htmlize</li>
</ul>
<p>
20160529.01:
</p>
<ul class="org-ul">
<li>added html-listify</li>
</ul>
<p>
20160530.01:
</p>
<ul class="org-ul">
<li>added key chords</li>
<li>added open-line-above+below</li>
</ul>
<p>
20160602.01:
</p>
<ul class="org-ul">
<li>C-q now fills and pressing it again un-fills</li>
</ul>
<p>
20160606.01:
</p>
<ul class="org-ul">
<li>deactivated key-chords, I didn't use them and they were annoying.</li>
</ul>
<p>
20160609.01:
</p>
<ul class="org-ul">
<li>added puppet mode</li>
</ul>
<p>
20160614.01:
</p>
<ul class="org-ul">
<li>added rotate-text (C-t)</li>
<li>added macro math (C-x-0) (0 used as =)</li>
</ul>
<p>
20160713.01:
</p>
<ul class="org-ul">
<li>fixed indent for Makefiles</li>
</ul>
<p>
20160729.01:
</p>
<ul class="org-ul">
<li>rm duplicate abbr defs</li>
</ul>
<p>
20160916.01:
</p>
<ul class="org-ul">
<li>enable mouse mark to copy</li>
</ul>
<p>
20160926.01:
</p>
<ul class="org-ul">
<li>Dont kill-buffer, kill-this-buffer instead</li>
</ul>
<p>
20160928.01:
</p>
<ul class="org-ul">
<li>change macro math C-x 0 to C-x C-0 so that C-0 is
usable again for close window</li>
<li>elisp mode: debug-on-error only on non-cygwin</li>
</ul>
<p>
20161011.01:
</p>
<ul class="org-ul">
<li>added dos2unix and unix2dos</li>
</ul>
<p>
20161014.01:
</p>
<ul class="org-ul">
<li>fix auto-indent in conf-mode</li>
<li>force C-c C-c comment-uncomment in conf-mode</li>
</ul>
<p>
20161018.01:
</p>
<ul class="org-ul">
<li>more effective conf-mode disarming (own defun)</li>
</ul>
<p>
20161022.01:
</p>
<ul class="org-ul">
<li>better paren mode</li>
</ul>
<p>
20161024.01:
</p>
<ul class="org-ul">
<li>fixed org mode hook</li>
</ul>
<p>
20161027.01:
</p>
<ul class="org-ul">
<li>turn off tramp stuff in kill-all-buffers as well,
so that after executing it, no more ssh prompt
appears on C-x f.</li>
</ul>
<p>
20161106.01:
</p>
<ul class="org-ul">
<li>added iedit mode with C-c e</li>
<li>added file-open support to eshell (aliases: vi + emacs)</li>
<li>much better C-l behavior in eshell (eshell/clear)</li>
</ul>
<p>
20161205.01:
</p>
<ul class="org-ul">
<li>added SLIME, sbcl and paredit support, only loaded when exists</li>
</ul>
<p>
20161206.01:
</p>
<ul class="org-ul">
<li>elisp mode: debug-on-error finally completeley disabled</li>
<li>added alias 'table, which enables org-mode table support everywhere</li>
</ul>
<p>
20170205.01:
</p>
<ul class="org-ul">
<li>started with ETAGS support</li>
</ul>
<p>
20170212.01:
</p>
<ul class="org-ul">
<li>added copy-defun (C-c f) to copy whole functions as is</li>
</ul>
<p>
20170212.02:
</p>
<ul class="org-ul">
<li>now using € (alt-r + e) as jump to etag</li>
</ul>
<p>
20170215.02:
</p>
<ul class="org-ul">
<li>added goto-last-change (C-b)</li>
<li>+test section</li>
<li>paredit</li>
</ul>
<p>
20170215.02:
</p>
<ul class="org-ul">
<li>disabled workgoups mode, don't use it, doesn't load correctly</li>
<li>fixed windows switch, no more printing popup on startup</li>
</ul>
<p>
20170220.01:
</p>
<ul class="org-ul">
<li>finally disabled aggressive-indent, it annoys more than it helps</li>
<li>added some bookmark aliases (bm, to, bl, like apparix)</li>
<li>added C-c y [..] copy+yank functions so that I can copy and paste
stuff very fast with one key commbo, like yy in vi.</li>
<li>added copy-parens, copy-quote, copy-help (help message)</li>
</ul>
<p>
20170220.02:
</p>
<ul class="org-ul">
<li>fixed C-c y y: indent correctly</li>