From 9f2c086dfdddc2eef37abf2fa17098bb1892c617 Mon Sep 17 00:00:00 2001 From: dx Date: Thu, 11 Jun 2020 00:57:33 +0100 Subject: ~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. --- Doom/.doom.d/org/config.org | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Doom/.doom.d/org/config.org') diff --git a/Doom/.doom.d/org/config.org b/Doom/.doom.d/org/config.org index 829dd4d..c23ec38 100644 --- a/Doom/.doom.d/org/config.org +++ b/Doom/.doom.d/org/config.org @@ -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 -- cgit v1.2.3-13-gbd6f