fix(literate): detect symlinked literate config files

`file-in-directory-p` already resolves symlinks, but on the off chance
that `+literate-config-file` points to a symlink living in a
non-symlinked directory, this heuristic will fail to realize the current
buffer belongs to your config.

Close: #6704
This commit is contained in:
Henrik Lissner 2024-09-01 16:33:44 -04:00
parent 76f7384621
commit 308444d612
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -176,7 +176,7 @@ We assume any org file in `doom-user-dir' is connected to your literate
config, and should trigger a recompile if changed."
(and (file-in-directory-p
(buffer-file-name (buffer-base-buffer))
(file-name-directory +literate-config-file))
(file-name-directory (file-truename +literate-config-file)))
(+literate-tangle-h)))
;;; autoload.el ends here