Make doom-project-{p,root} functions simpler

+ doom-project-root and doom-project-p no longer takes arguments
+ Remove doom*project-root advice
This commit is contained in:
Henrik Lissner 2017-09-20 01:33:25 +02:00
parent 77836e08b1
commit 3fcbdae441
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
4 changed files with 10 additions and 16 deletions

View file

@ -53,7 +53,7 @@ Inspired from http://demonastery.org/2013/04/emacs-evil-narrow-region/"
If no project is active, return all buffers."
(let ((buffers (doom-buffer-list)))
(if-let (project-root (doom-project-root t))
(if-let (project-root (if (doom-project-p) (doom-project-root)))
(cl-loop for buf in buffers
if (projectile-project-buffer-p buf project-root)
collect buf)