Feature important sd paths during the early setup.

Commit
a4ac03da4528910031b7777ff56085e59ddae3d9
Author
Marius Peter <marius.peter@tutanota.com>
Author date
Committer
Marius Peter <marius.peter@tutanota.com>
Committer date
Changed files
resources/custom.el
index fcd73eea..531aeb44 100644..100644
@@ -68,7 +68,7 @@
68 68 '(org-startup-align-all-tables t)
69 69 '(org-table-convert-region-max-lines 3000)
70 70 '(org-tags-column -66)
71 Removed: '(pdf-view-midnight-colors '("#DCDCCC" . "#383838"))
71 Added: '(pdf-view-midnight-colors '("#DCDCCC" . "#383838"))
72 72 '(save-place-mode t)
73 73 '(send-mail-function 'smtpmail-send-it)
74 74 '(show-paren-mode t)
smart-documents.org
index 11a88890..64d6c5fb 100644..100644
@@ -8,9 +8,9 @@
8 8 #+OPTIONS: html-style:nil
9 9 #+MACRO: sd /Smart Documents/
10 10 # LaTeX setup
11 Removed: #+SETUPFILE: ~/.emacs.d/templates/documents/gnu-default.setup
11 Added: #+SETUPFILE: ~/.emacs.d/resources/templates/documents/gnu-default.setup
12 12 # Title page
13 Removed: #+INCLUDE: ~/.emacs.d/templates/documents/title-default.org
13 Added: #+INCLUDE: ~/.emacs.d/resources/templates/documents/title-default.org
14 14 #+LATEX_HEADER_EXTRA: \newfontfamily\garamond{EB Garamond}
15 15 #+LATEX_HEADER_EXTRA: \newfontfamily\publicsans{Public Sans}
16 16
@@ -159,46 +159,77 @@
159 159 (interactive)
160 160 (find-file my/literate-config))
161 161 #+END_SRC
162 Added: ** Usual paths to files & directories
162 163
163 Removed: ** Definitions
164 Removed:
165 Removed: *** Usual paths
166 Removed:
167 164 This section defines the paths that structure the overall {{{sd}}}
168 165 logic.
169 166
170 Removed: #+BEGIN_SRC emacs-lisp :tangle yes
171 Removed: (defcustom sd-path-meta
172 Removed: (concat user-emacs-directory "meta/")
173 Removed: "Directory containing the meta files.")
167 Added: - File :: A collection of information recognized by a computer---to
168 Added: us, a normal file appears as programs (source code or /executables/)
169 Added: or data (an image, a video, a document...). It is usually stored in
170 Added: a computer's memory or on a storage device (hard drive, USB
171 Added: drive...)
172 Added: - Path :: A description of a file's location from the user's
173 Added: perspective. A path is program searches for a file or executable
174 Added: program.
175 Added: - Directory :: Synonymous with /folder/. From the computer's---and
176 Added: Emacs'---perspective, a file which contains other files. These files
177 Added: may themselves be directories.
174 178
175 Removed: (defcustom sd-path-res
176 Removed: (concat user-emacs-directory "res/")
179 Added: *** Resources
180 Added:
181 Added: All third-party resources are saved at the following location.
182 Added:
183 Added: #+BEGIN_SRC emacs-lisp :tangle yes
184 Added: (defcustom sd-path-resources
185 Added: (concat user-emacs-directory "resources/")
177 186 "Directory containing the third-party resources.")
178 187 #+END_SRC
179 188
180 Removed: ** Resources
189 Added: **** Packages
181 190
182 Removed: All third-party resources are saved at the following location.
191 Added: #+BEGIN_SRC emacs-lisp :tangle yes
192 Added: (setq package-user-dir
193 Added: (concat sd-path-resources "elpa"))
194 Added: #+END_SRC
183 195
184 Removed: *** Packages
196 Added: **** Themes
185 197
186 198 #+BEGIN_SRC emacs-lisp :tangle yes
187 Removed: (setq package-user-dir
188 Removed: (concat sd-path-res
189 Removed: "elpa"))
199 Added: (setq custom-theme-directory
200 Added: (concat sd-path-resources "themes/"))
190 201 #+END_SRC
191 202
192 Removed: *** Emojis
203 Added: **** Snippets
193 204
205 Added: This path, specifically, is required to be in list form.
206 Added:
194 207 #+BEGIN_SRC emacs-lisp :tangle yes
208 Added: (setq yas-snippet-dirs
209 Added: (list (concat sd-path-resources "snippets/")))
210 Added: #+END_SRC
211 Added:
212 Added: **** Emojis
213 Added:
214 Added: #+BEGIN_SRC emacs-lisp :tangle yes
195 215 (setq emojify-emojis-dir
196 Removed: (concat sd-path-res
197 Removed: "emojis"))
216 Added: (concat sd-path-resources "emojis"))
198 217 #+END_SRC
199 218
200 Removed: ** Meta-files
219 Added: **** Custom file
201 220
221 Added: Load settings created automatically by GNU Emacs Custom. (For example,
222 Added: any clickable option/toggle is saved here.) Useful for fooling around
223 Added: with ~M-x customize-group <package>~.
224 Added:
225 Added: #+NAME: custom-file-location
226 Added: #+BEGIN_SRC emacs-lisp :tangle yes
227 Added: (setq custom-file (concat sd-path-resources "custom.el"))
228 Added: (load custom-file)
229 Added: #+END_SRC
230 Added:
231 Added: *** Files about files
232 Added:
202 233 In this section, we'll be tidying up the =.emacs.d/= directory---by
203 234 default, many Emacs packages create files useful for themselves in our
204 235 ~user-emacs-directory~. This leads to undesirable clutter. Certain
@@ -209,34 +240,34 @@
209 240 reference... other files. Thus, I decided to refer to them as
210 241 meta-files.
211 242
212 Removed: *** Recently visited files
243 Added: #+BEGIN_SRC emacs-lisp :tangle yes
244 Added: (defcustom sd-path-meta
245 Added: (concat user-emacs-directory "meta/")
246 Added: "Directory (files, really) containing files about files.")
247 Added: #+END_SRC
213 248
249 Added: **** Recently visited files
250 Added:
214 251 #+BEGIN_SRC emacs-lisp :tangle yes
215 252 (setq recentf-save-file
216 Removed: (concat
217 Removed: sd-path-meta
218 Removed: "recentf"))
253 Added: (concat sd-path-meta "recentf"))
219 254 #+END_SRC
220 255
221 Removed: *** Projects' bookmarks
256 Added: **** Projects' bookmarks
222 257
223 258 #+BEGIN_SRC emacs-lisp :tangle yes
224 259 (setq projectile-known-projects-file
225 Removed: (concat
226 Removed: sd-path-meta
227 Removed: "projectile-bookmarks.eld"))
260 Added: (concat sd-path-meta "projectile-bookmarks.eld"))
228 261 #+END_SRC
229 262
230 Removed: *** Location in previously visited file
263 Added: **** Location in previously visited file
231 264
232 265 #+BEGIN_SRC emacs-lisp :tangle yes
233 266 (setq save-place-file
234 Removed: (concat
235 Removed: sd-path-meta
236 Removed: "places"))
267 Added: (concat sd-path-meta "places"))
237 268 #+END_SRC
238 269
239 Removed: *** Auto save file lists
270 Added: **** Auto save file lists
240 271
241 272 #+BEGIN_SRC emacs-lisp :tangle yes
242 273 (setq auto-save-list-file-prefix
@@ -244,18 +275,6 @@
244 275 "auto-save-list/.saves-"))
245 276 #+END_SRC
246 277
247 Removed: ** Custom file
248 Removed:
249 Removed: Load settings created automatically by GNU Emacs Custom. (For example,
250 Removed: any clickable option/toggle is saved here.) Useful for fooling around
251 Removed: with ~M-x customize-group <package>~.
252 Removed:
253 Removed: #+NAME: custom-file-location
254 Removed: #+BEGIN_SRC emacs-lisp :tangle yes
255 Removed: (setq custom-file (concat user-emacs-directory "custom.el"))
256 Removed: (load custom-file)
257 Removed: #+END_SRC
258 Removed:
259 278 ** Backups
260 279
261 280 Backups are very important!
@@ -458,7 +477,11 @@
458 477 (global-set-key (kbd "C-+") 'text-scale-increase)
459 478 #+END_SRC
460 479
461 Removed: ** TODO Navigation
480 Added: ** TODO COMMENT Navigation
481 Added: # [2021-09-13 Mon]
482 Added: #
483 Added: # Kinda don't like this... This is some more text. And then some. And
484 Added: # then some.
462 485
463 486 =Alt= (=Meta=) is the privileged key for motion in a buffer. It is
464 487 followed by an optional numerical argument, and a movement
@@ -826,7 +849,7 @@
826 849
827 850
828 851
829 Removed: #+BEGIN_SRC ditaa :file img/ditaa.png
852 Added: #+BEGIN_SRC ditaa :file resources/images/ditaa.png
830 853 +-----------+ +-----------------+
831 854 | c06F | | c06F |
832 855 | Create a | | Open the source |
@@ -837,7 +860,7 @@
837 860 #+END_SRC
838 861
839 862 #+RESULTS:
840 Removed: [[file:img/ditaa.png]]
863 Added: [[file:resources/images/ditaa.png]]
841 864
842 865 *** TODO UML diagrams
843 866 # Implement automatically downloading this kind of executable!
@@ -846,13 +869,13 @@
846 869 (require 'plantuml-mode)
847 870
848 871 (setq plantuml-default-exec-mode 'jar
849 Removed: plantuml-jar-path (concat user-emacs-directory
850 Removed: "execs/plantuml.jar")
851 Removed: org-plantuml-jar-path (concat user-emacs-directory
852 Removed: "execs/plantuml.jar"))
872 Added: plantuml-jar-path (concat sd-path-resources
873 Added: "executables/plantuml.jar")
874 Added: org-plantuml-jar-path (concat sd-path-resources
875 Added: "executables/plantuml.jar"))
853 876 #+END_SRC
854 877
855 Removed: #+BEGIN_SRC plantuml :file img/uml.png
878 Added: #+BEGIN_SRC plantuml :file resources/images/uml.png
856 879 @startuml doob.png
857 880 !theme cerulean-outline
858 881 title Example diagram with Plantuml
@@ -874,8 +897,9 @@
874 897 @enduml
875 898 #+END_SRC
876 899
900 Added: #+ATTR_LATEX: :width 0.8\textwidth
877 901 #+RESULTS:
878 Removed: [[file:img/uml.png]]
902 Added: [[file:resources/images/uml.png]]
879 903
880 904 ** Coding languages
881 905
@@ -1332,6 +1356,13 @@
1332 1356 (add-to-list 'org-latex-classes
1333 1357 '("letter"
1334 1358 "\\documentclass[11pt]{letter}"
1359 Added: ("\\section{%s}" . "\\section*{%s}")
1360 Added: ("\\subsection*{%s}" . "\\subsection*{%s}")
1361 Added: ("\\subsubsection*{%s}" . "\\subsubsection*{%s}")))
1362 Added:
1363 Added: (add-to-list 'org-latex-classes
1364 Added: '("book-blendoit"
1365 Added: "\\documentclass[11pt]{book}"
1335 1366 ("\\chapter{%s}" . "\\chapter*{%s}")
1336 1367 ("\\section{%s}" . "\\section*{%s}")
1337 1368 ("\\subsection*{%s}" . "\\subsection*{%s}")
@@ -1430,7 +1461,7 @@
1430 1461 "Quick export for `ledger-mode' report buffers."
1431 1462 (let ((old-buffer (current-buffer)))
1432 1463 (with-output-to-temp-buffer "**SD Export**"
1433 Removed: (print "#+SETUPFILE: ~/.emacs.d/templates/documents/default.org")
1464 Added: (print "#+SETUPFILE: ~/.emacs.d/resources/templates/documents/default.org")
1434 1465 (newline)
1435 1466 (insert-buffer-substring old-buffer)
1436 1467 (forward-line 10)
@@ -1612,7 +1643,7 @@
1612 1643 #+BEGIN_SRC emacs-lisp :tangle yes
1613 1644 (defcustom sd-icon-loading
1614 1645 (create-image
1615 Removed: (concat user-emacs-directory "img/icons/ellipsis.gif")
1646 Added: (concat user-emacs-directory "resources/images/icons/ellipsis.gif")
1616 1647 'gif nil
1617 1648 :scale 0.4)
1618 1649 "The GIF representing \"loading\". Not animated by default."
@@ -1823,10 +1854,6 @@
1823 1854 *purposefully* and iteratively.
1824 1855
1825 1856 #+BEGIN_SRC emacs-lisp :tangle yes
1826 Removed: (setq custom-theme-directory (concat user-emacs-directory "themes/"))
1827 Removed: #+END_SRC
1828 Removed:
1829 Removed: #+BEGIN_SRC emacs-lisp :tangle no
1830 1857 (load-theme 'sd-compagnon-dark)
1831 1858 #+END_SRC
1832 1859
@@ -1834,7 +1861,7 @@
1834 1861 (load-theme 'molokai)
1835 1862 #+END_SRC
1836 1863
1837 Removed: #+BEGIN_SRC emacs-lisp :tangle yes
1864 Added: #+BEGIN_SRC emacs-lisp :tangle no
1838 1865 (load-theme 'sd-light)
1839 1866 #+END_SRC
1840 1867
@@ -1974,8 +2001,8 @@
1974 2001
1975 2002 #+NAME: claude-garamont
1976 2003 #+CAPTION[Claude Garamont, an icon of font design]: Claude Garamont, an icon of font design. World-renowned for his elegant typefaces, which inspired many generations of typographers.
1977 Removed: #+ATTR_LATEX: :width 0.2\pagewidth
1978 Removed: [[~/.emacs.d/img/smart-documents/ClaudeGaramond.jpeg]]
2004 Added: #+ATTR_LATEX: :width 0.4\textwidth
2005 Added: [[~/.emacs.d/resources/images/smart-documents/ClaudeGaramond.jpeg]]
1979 2006
1980 2007 #+LATEX: \garamond
1981 2008 \lettrine{G}{ood} golly, nobody wishes for a /pedestrian/ theme! Let
@@ -2040,3 +2067,7 @@
2040 2067 In this configuration file, we described a series of customization
2041 2068 steps taken to make Emacs more palatable to modern word processors
2042 2069 users.
2070 Added:
2071 Added: # Local Variables:
2072 Added: # org-confirm-babel-evaluate: nil
2073 Added: # End:
smart-documents.pdf
index 07265ccf..be698f80 100644..100644

Binary files differ