aboutsummaryrefslogtreecommitdiff
path: root/Doom/.doom.d/org/config.org
diff options
context:
space:
mode:
authordx <aryadevchavali1@gmail.com>2020-06-11 00:57:33 +0100
committerdx <aryadevchavali1@gmail.com>2020-06-11 00:57:33 +0100
commit9f2c086dfdddc2eef37abf2fa17098bb1892c617 (patch)
treee42791cf68d9d7b51ff95c483ad293c4b9639a6a /Doom/.doom.d/org/config.org
parent4641546f065f497b030c3dd09466884eee8a6feb (diff)
downloaddotfiles-9f2c086dfdddc2eef37abf2fa17098bb1892c617.tar.gz
dotfiles-9f2c086dfdddc2eef37abf2fa17098bb1892c617.tar.bz2
dotfiles-9f2c086dfdddc2eef37abf2fa17098bb1892c617.zip
~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.
Diffstat (limited to 'Doom/.doom.d/org/config.org')
-rw-r--r--Doom/.doom.d/org/config.org9
1 files changed, 7 insertions, 2 deletions
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