From a0ddfe0bce844d337f0d27d251ddccf41b300d25 Mon Sep 17 00:00:00 2001 From: AChavali Date: Fri, 3 Jan 2020 00:59:56 +0000 Subject: +or condition to compile hook for literate config --- doom.d/modules/literate.org | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)))) -- cgit v1.2.3-13-gbd6f