~literate config -> org-babel-load-*

Basically, instead of generating files at every save on Emacs, just load
them via org-babel-load-file. This means that I can rely on those
functions to compile and manage org file to elisp file conversions. This
happens at first run time, and will not compile org files to el files if
there have been no changes to the org files.
This commit is contained in:
dx
2020-06-11 00:57:33 +01:00
parent 4641546f06
commit 9f2c086dfd
5 changed files with 31 additions and 29 deletions

View File

@@ -11,9 +11,14 @@
* Init
Initialize literate config and setup some basic variables
** Bootstrap
Load the literate.el file to start parsing.
Declare variable for org files I want to compile
#+BEGIN_SRC elisp
(load (expand-file-name (concat doom-private-dir "bin/literate.el")))
(defvar dx:literate/org-files '("personal.org"))
#+END_SRC
Then just iterate and load them via =org-babel-load-file=.
#+BEGIN_SRC elisp
(cl-loop for file in dx:literate/org-files do (org-babel-load-file (concat doom-private-dir "org/" file)))
#+END_SRC
** Doom Variables
- Set the doom localleader to "," because it's faster