doom-project-find-file: set default-directory too #833

Be extra sure!
This commit is contained in:
Henrik Lissner 2018-08-26 12:00:13 +02:00
parent 1a6ee8e0df
commit 247b219ea1
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -73,8 +73,9 @@ If NOCACHE, don't fetch a cached answer."
;;;###autoload
(defun doom-project-find-file (dir)
"Fuzzy-find a file under DIR."
(let ((projectile-project-root dir))
(without-project-cache!
(without-project-cache!
(let ((default-directory dir)
(projectile-project-root dir))
(call-interactively
;; completion modules may remap this command
(or (command-remapping #'projectile-find-file)