~literate/load-files instead of trying to guess them
This commit is contained in:
@@ -101,13 +101,8 @@ because this is the function we'll be using for tangling all org files to ELisp
|
|||||||
(dx:literate/tangle file (dx:literate/destination file)))))
|
(dx:literate/tangle file (dx:literate/destination file)))))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
* Load configuration
|
* Load configuration
|
||||||
Final step of the literate cycle: load the config for the first time.
|
Final step of the literate cycle: load the config for the first time. Load any org files in =dx:literate/load-files=.
|
||||||
Remove the config.el and literate.el files from the load list because:
|
|
||||||
1) config.org is preloaded by doom
|
|
||||||
2) literate.org is loaded by config.org, thus no need to reload it
|
|
||||||
|
|
||||||
#+BEGIN_SRC elisp
|
#+BEGIN_SRC elisp
|
||||||
(let ((files (directory-files-recursively "~/.doom.d/org/" ".org"))) ; Load
|
(dolist (file dx:literate/load-files)
|
||||||
(dolist (file (dx:literate/remove-mult dx:literate/preloaded-files files))
|
(load (dx:literate/destination file)))
|
||||||
(load (dx:literate/destination file))))
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|||||||
Reference in New Issue
Block a user