From 10ed4eae2446177444716daa780c709506ac9a42 Mon Sep 17 00:00:00 2001 From: odave Date: Tue, 17 Mar 2020 17:45:16 +0000 Subject: +description for oredave/literate/compile-hook --- doom.d/config/literate.org | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3-13-gbd6f