Require project root in dashboard buffer #733

Require default-directory to be in a valid project for project commands
to work. This will prevent hangs when accidentally invoking
projectile-find-file from $HOME.
This commit is contained in:
Henrik Lissner 2018-06-28 20:14:17 +02:00
parent 55104b9f89
commit 2dac739ce7
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -63,6 +63,7 @@ Possible values:
buffer-read-only t)
(setq-local whitespace-style nil)
(setq-local show-trailing-whitespace nil)
(setq-local projectile-require-project-root t)
(cl-loop for (car . _cdr) in fringe-indicator-alist
collect (cons car nil) into alist
finally do (setq fringe-indicator-alist alist))