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.
This commit is contained in:
Henrik Lissner 2020-08-27 17:19:52 -04:00
parent e03824bf5e
commit 666ea63591
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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.