aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doom.d/config/literate.org3
1 files changed, 2 insertions, 1 deletions
diff --git a/doom.d/config/literate.org b/doom.d/config/literate.org
index 29931c1..5815708 100644
--- a/doom.d/config/literate.org
+++ b/doom.d/config/literate.org
@@ -70,6 +70,7 @@ loaded. README.org has been added as an exception because it doesn't contain
literate contents.
#+BEGIN_SRC elisp
(defun oreodave/literate/compile-hook ()
+ "Any org file within $DOOM/config will be compiled on save"
(when (and (eq major-mode 'org-mode)
(or (file-in-directory-p buffer-file-name doom-private-dir)
(file-in-directory-p buffer-file-name (concat doom-private-dir "config")))
@@ -89,8 +90,8 @@ because this is the function we'll be using for tangling all org files to ELisp
#+BEGIN_SRC elisp
(defun oreodave/literate/tangle-all (&optional location)
"Tangle all org files in `location' to el files in the `destination'"
- (or location (setq location doom-private-dir))
(interactive)
+ (or location (setq location doom-private-dir))
(message "Starting compilation process")
(let ((files (directory-files-recursively location ".org")))
(dolist (file files)