diff options
author | odave <aryadevchavali1@gmail.com> | 2020-03-17 17:45:16 +0000 |
---|---|---|
committer | odave <aryadevchavali1@gmail.com> | 2020-03-17 17:46:24 +0000 |
commit | 10ed4eae2446177444716daa780c709506ac9a42 (patch) | |
tree | a1c089653e865fbce23b47e9c414c642bfafa6a2 /doom.d/config/literate.org | |
parent | 61a91e376d9e7aab99bc620a4de26a7458198882 (diff) | |
download | dotfiles-10ed4eae2446177444716daa780c709506ac9a42.tar.gz dotfiles-10ed4eae2446177444716daa780c709506ac9a42.tar.bz2 dotfiles-10ed4eae2446177444716daa780c709506ac9a42.zip |
+description for oredave/literate/compile-hook
Diffstat (limited to 'doom.d/config/literate.org')
-rw-r--r-- | doom.d/config/literate.org | 3 |
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) |