Fix doom-project-find-file if $HOME is a repo #833

If HOME is a repo, projectile resolves all project roots to HOME. This
fixes any commands that rely on this project resolution by explicitly
telling them what project they're in instead.
This commit is contained in:
Henrik Lissner 2018-08-26 11:47:04 +02:00
parent 300181aba3
commit 1a6ee8e0df
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

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