Allow +literate-config-file to be a symbolic link

If the literate config file is a symbolic link, the tangled file is with the
target of the link, not with the literate config file.
This commit is contained in:
Sheng Yang 2019-10-09 21:02:49 -05:00
parent 94ce52a70d
commit 73e0baba08

View File

@ -19,7 +19,7 @@ byte-compiled from.")
force-p)
(message "Compiling your literate config...")
(let* ((org (file-truename +literate-config-file))
(dest (concat (file-name-sans-extension org) ".el"))
(dest (concat (file-name-sans-extension +literate-config-file) ".el"))
(output (get-buffer-create "*org-tangle*")))
(unwind-protect
;; We tangle in a separate, blank process because loading it here