diff options
author | AChavali <aryadevchavali1@gmail.com> | 2020-01-03 00:59:56 +0000 |
---|---|---|
committer | AChavali <aryadevchavali1@gmail.com> | 2020-01-03 00:59:56 +0000 |
commit | a0ddfe0bce844d337f0d27d251ddccf41b300d25 (patch) | |
tree | d4fcc9371e898979f00faffdd23c288955b9487f /doom.d | |
parent | b42df21947bb75ac1e4dd317eb9d7bf0cd20e932 (diff) | |
download | dotfiles-a0ddfe0bce844d337f0d27d251ddccf41b300d25.tar.gz dotfiles-a0ddfe0bce844d337f0d27d251ddccf41b300d25.tar.bz2 dotfiles-a0ddfe0bce844d337f0d27d251ddccf41b300d25.zip |
+or condition to compile hook for literate config
Diffstat (limited to 'doom.d')
-rw-r--r-- | doom.d/modules/literate.org | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doom.d/modules/literate.org b/doom.d/modules/literate.org index 302ef5a..3de1926 100644 --- a/doom.d/modules/literate.org +++ b/doom.d/modules/literate.org @@ -61,7 +61,8 @@ literate contents. #+BEGIN_SRC elisp (defun oreodave/literate/compile-hook () (when (and (eq major-mode 'org-mode) - (file-in-directory-p buffer-file-name doom-private-dir) + (or (file-in-directory-p buffer-file-name doom-private-dir) + (file-in-directory-p buffer-file-name (concat doom-private-dir "modules"))) (not (string= buffer-file-name (expand-file-name (concat doom-private-dir "README.org"))))) (oreodave/literate/tangle buffer-file-name (oreodave/literate/destination buffer-file-name)))) |