From 666ea635914995bb6eb2e8a9e7e7c174c47c7ab3 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 27 Aug 2020 17:19:52 -0400 Subject: [PATCH] config/literate: make default tangle target DOOMDIR/config.el Rather than ./config.el, which means it will end up in the wrong place if the user moves their config.org out of $DOOMDIR or into a subdirectory. --- modules/config/literate/autoload.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/config/literate/autoload.el b/modules/config/literate/autoload.el index 85b5982bc..165ef934a 100644 --- a/modules/config/literate/autoload.el +++ b/modules/config/literate/autoload.el @@ -23,7 +23,7 @@ byte-compiled from.") (letf! ((default-directory doom-private-dir) (target +literate-config-file) (cache +literate-config-cache-file) - (dest (concat (file-name-sans-extension target) ".el")) + (dest (expand-file-name (concat (file-name-base target) ".el")) ;; Operate on a copy because `org-babel-tangle' has ;; side-effects we need to undo immediately as not to ;; overwrite the user's config; it's bad ettiquite.