[Emacs Lisp] Personal ~/.emacs.d/ configuration folder.
Minor changes.
Changed files
init.el
@@ -1,3 +1,6 @@
1
Added:
;; -*- mode: emacs-lisp; -*-
2
Added:
3
Added:
1
4
;;; init.el --- Load literate configuration file, smart-documents.org.
2
5
3
6
;;; Commentary:
@@ -5,18 +8,14 @@
5
8
6
9
;;; Code:
7
10
8
Removed:
;; First of all, we indicate the path to our literate configuration file.
11
Added:
;; First, we indicate the path to our literate configuration file.
9
12
(setq sd-literate-config (concat
10
13
user-emacs-directory
11
14
"smart-documents.org"))
12
15
13
Removed:
;; Then, we load this file into Emacs' memory.
16
Added:
;; Then, we load our literate configuration into Emacs' memory.
14
17
(org-babel-load-file sd-literate-config)
15
18
16
19
(provide 'init)
17
20
18
21
;;; init.el ends here
19
Removed:
20
Removed:
;; Local Variables:
21
Removed:
;; mode: emacs-lisp
22
Removed:
;; End:
smart-documents.org
@@ -49,7 +49,10 @@
49
49
50
50
** TODO Integrate site publishing recipes
51
51
52
Added:
** TODO ~transient-*-file~ paths
52
53
54
Added:
Put them somewhere it makes sense.
55
Added:
53
56
* Introduction
54
57
55
58
The following sections were laid out very deliberately. When we start
@@ -196,7 +199,7 @@
196
199
reference... other files. Thus, I decided to refer to them as meta
197
200
files.
198
201
199
Removed:
A meta files should follow the following best principles:
202
Added:
A meta files should follow the following best practices:
200
203
201
204
- Be located at [[help:sd-path-meta][sd-path-meta]] :: This ensures a tidy
202
205
[[help:user-emacs-directory][user-emacs-directory]].
@@ -330,9 +333,9 @@
330
333
331
334
#+BEGIN_SRC emacs-lisp :tangle yes
332
335
(setq backup-directory-alist
333
Removed:
`((".*" . ,temporary-file-directory))
336
Added:
`((".*" . "~/.cache/emacs/"))
334
337
auto-save-file-name-transforms
335
Removed:
`((".*" ,temporary-file-directory t))
338
Added:
`((".*" ,"~/.cache/emacs/" t))
336
339
backup-by-copying t ; Don't delink hardlinks
337
340
version-control t ; Use version numbers on backups
338
341
delete-old-versions t ; Automatically delete excess backups
@@ -340,20 +343,30 @@
340
343
kept-old-versions 5) ; and how many of the old
341
344
#+END_SRC
342
345
346
Added:
** Undo history
347
Added:
348
Added:
We save undo history in a designated directory, so as not to pollute
349
Added:
our file hierarchy.
350
Added:
351
Added:
#+BEGIN_SRC emacs-lisp :tangle yes
352
Added:
(setq undo-tree-history-directory-alist '(("." . "~/.cache/emacs/")))
353
Added:
#+END_SRC
354
Added:
355
Added:
343
356
** Initial and default frames
344
357
345
358
We set the dimensions of the initial frame:
346
359
347
360
#+BEGIN_SRC emacs-lisp :tangle yes
348
Removed:
(add-to-list 'initial-frame-alist '(width . 70))
349
Removed:
(add-to-list 'initial-frame-alist '(height . 30))
361
Added:
(add-to-list 'initial-frame-alist '(width . 80))
362
Added:
(add-to-list 'initial-frame-alist '(height . 24))
350
363
#+END_SRC
351
364
352
365
We also set the dimensions of subsequent frames:
353
366
354
367
#+BEGIN_SRC emacs-lisp :tangle yes
355
Removed:
(add-to-list 'default-frame-alist '(width . 70))
356
Removed:
(add-to-list 'default-frame-alist '(height . 30))
368
Added:
(add-to-list 'default-frame-alist '(width . 80))
369
Added:
(add-to-list 'default-frame-alist '(height . 24))
357
370
#+END_SRC
358
371
359
372
Transparency.
@@ -771,8 +784,12 @@
771
784
772
785
#+NAME: hungry-delete
773
786
#+BEGIN_SRC emacs-lisp :tangle yes
774
Removed:
(use-package hungry-delete)
775
Removed:
(global-hungry-delete-mode)
787
Added:
(use-package hungry-delete
788
Added:
:config (progn
789
Added:
(global-hungry-delete-mode)
790
Added:
(add-to-list
791
Added:
'hungry-delete-except-modes ;; Otherwise minibuffer paths can't be backspaced.
792
Added:
'minibuffer-mode)))
776
793
#+END_SRC
777
794
778
795
** Utilities
@@ -906,7 +923,7 @@
906
923
:defer t)
907
924
#+END_SRC
908
925
909
Removed:
*** Drawings
926
Added:
*** COMMENT Drawings
910
927
911
928
912
929
@@ -943,13 +960,13 @@
943
960
title Example diagram with Plantuml
944
961
945
962
package "Package 1" as pkg1 {
946
Removed:
node node1
947
Removed:
node node2
963
Added:
node node1
964
Added:
node node2
948
965
}
949
966
package "Package 2" as pkg2 {
950
Removed:
component "Component 1" as comp1
951
Removed:
component "Component 2" as comp2
952
Removed:
interface "Interface" as int
967
Added:
component "Component 1" as comp1
968
Added:
component "Component 2" as comp2
969
Added:
interface "Interface" as int
953
970
}
954
971
955
972
pkg1 .. pkg2
@@ -995,7 +1012,15 @@
995
1012
(use-package lua-mode)
996
1013
#+END_SRC
997
1014
1015
Added:
*** Web languages
998
1016
1017
Added:
Encompasses HTML, CSS, Javascript, Jinja(2), as well as many other
1018
Added:
web-related markup languages.
1019
Added:
1020
Added:
#+BEGIN_SRC emacs-lisp :tangle yes
1021
Added:
(use-package web-mode)
1022
Added:
#+END_SRC
1023
Added:
999
1024
** File formats
1000
1025
1001
1026
These aren't tied to a particular language per se.
@@ -1351,7 +1376,7 @@
1351
1376
(plantuml . t)
1352
1377
(emacs-lisp . t)
1353
1378
(awk . t)
1354
Removed:
(ledger . t)
1379
Added:
;; (ledger . t) ;; Deprecated in Emacs 28.1?
1355
1380
(latex . t)
1356
1381
(C . t)
1357
1382
(gnuplot . t)
@@ -1504,7 +1529,7 @@
1504
1529
The following makes =TODO= items appear red and =CLOSED= items appear
1505
1530
green in Org's LaTeX exports. Very stylish, much flair!
1506
1531
1507
Removed:
**** AUCTEX
1532
Added:
**** COMMENT AUCTEX
1508
1533
1509
1534
#+BEGIN_SRC emacs-lisp :tangle yes
1510
1535
(use-package tex
@@ -1682,9 +1707,12 @@
1682
1707
(interactive)
1683
1708
(sd-indent-buffer)
1684
1709
(delete-trailing-whitespace)
1685
Removed:
(when (string-equal
1686
Removed:
major-mode "org-mode")
1687
Removed:
(sd-org-fix-headlines-spacing)))
1710
Added:
(cond
1711
Added:
((string-equal major-mode "org-mode")
1712
Added:
(sd-org-fix-headlines-spacing))
1713
Added:
((string-equal major-mode "python-mode")
1714
Added:
(or (shell-command (concat "~/.local/bin/black " buffer-file-name))
1715
Added:
(message "Could not find black Python formatter.")))))
1688
1716
1689
1717
1690
1718
#+END_SRC
@@ -1868,7 +1896,7 @@
1868
1896
(image-animate sd-icon-loading 0 t)
1869
1897
#+END_SRC
1870
1898
1871
Removed:
**** Mode line
1899
Added:
**** TODO COMMENT Mode line
1872
1900
1873
1901
This interpretation of the ideal mode line is the result of carefully
1874
1902
studying the default ~mode-line~, as well as studying various
@@ -2003,7 +2031,7 @@
2003
2031
(load-theme 'sd-compagnon-dark)
2004
2032
#+END_SRC
2005
2033
2006
Removed:
#+BEGIN_SRC emacs-lisp :tangle no
2034
Added:
#+BEGIN_SRC emacs-lisp :tangle yes
2007
2035
(load-theme 'molokai)
2008
2036
#+END_SRC
2009
2037
@@ -2011,7 +2039,7 @@
2011
2039
(load-theme 'sd-light)
2012
2040
#+END_SRC
2013
2041
2014
Removed:
#+BEGIN_SRC emacs-lisp :tangle yes
2042
Added:
#+BEGIN_SRC emacs-lisp :tangle no
2015
2043
(load-theme 'sd-dark)
2016
2044
#+END_SRC
2017
2045
@@ -2058,7 +2086,7 @@
2058
2086
code syntax highlighting to could be in the pink/purple shades. This
2059
2087
is also a nod to Spacemacs' dark theme.2 hour
2060
2088
2061
Removed:
*** Cursors
2089
Added:
*** TODO Cursors
2062
2090
2063
2091
In order to imitate other modern text editors, we resort to a blinking
2064
2092
bar cursor. We choose red, the most captivating color, because the
@@ -2124,7 +2152,7 @@
2124
2152
- Courier Prime[fn::https://quoteunquoteapps.com/courierprime/index.php] :: monospace
2125
2153
in print
2126
2154
2127
Removed:
**** Using proportional fonts when needed
2155
Added:
**** COMMENT Using proportional fonts when needed
2128
2156
2129
2157
We use ~variable-pitch-mode~ for appropriate modes.
2130
2158
@@ -2218,7 +2246,7 @@
2218
2246
users.
2219
2247
2220
2248
2221
Removed:
* Local files variables
2249
Added:
* COMMENT Local files variables
2222
2250
:PROPERTIES:
2223
2251
:UNNUMBERED: t
2224
2252
:END: