mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
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:
@ -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."
|
config, and should trigger a recompile if changed."
|
||||||
(and (file-in-directory-p
|
(and (file-in-directory-p
|
||||||
(buffer-file-name (buffer-base-buffer))
|
(buffer-file-name (buffer-base-buffer))
|
||||||
(file-name-directory +literate-config-file))
|
(file-name-directory (file-truename +literate-config-file)))
|
||||||
(+literate-tangle-h)))
|
(+literate-tangle-h)))
|
||||||
|
|
||||||
;;; autoload.el ends here
|
;;; autoload.el ends here
|
||||||
|
Reference in New Issue
Block a user