From d2f9d28577a866d5625ff5ff755c2ea620f9bdbd Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 4 Sep 2018 01:01:54 +0200 Subject: [PATCH] doom-project-(find-file|browse): resolve symlinks This prevents absolute paths appearing in many find-in/browse commands, like +default/find-in-emacsd, +default/find-in-config, or +default/browse-project. --- core/autoload/projects.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/autoload/projects.el b/core/autoload/projects.el index 9d5eb2786..0d5c5d305 100644 --- a/core/autoload/projects.el +++ b/core/autoload/projects.el @@ -74,8 +74,8 @@ If NOCACHE, don't fetch a cached answer." (defun doom-project-find-file (dir) "Fuzzy-find a file under DIR." (without-project-cache! - (let ((default-directory dir) - (projectile-project-root dir)) + (let* ((default-directory (file-truename dir)) + (projectile-project-root default-directory)) (call-interactively ;; completion modules may remap this command (or (command-remapping #'projectile-find-file) @@ -84,7 +84,7 @@ If NOCACHE, don't fetch a cached answer." ;;;###autoload (defun doom-project-browse (dir) "Traverse a file structure starting linearly from DIR." - (let ((default-directory dir)) + (let ((default-directory (file-truename dir))) (call-interactively ;; completion modules may remap this command (or (command-remapping #'find-file)