From c468c6b6023436116f1d2377350a05cbbc4cc650 Mon Sep 17 00:00:00 2001 From: Xinglu Chen Date: Tue, 2 Feb 2021 20:32:09 +0100 Subject: piem-inbox-coderepo-maybe-read: Support project.el Add support for reading directory using project.el. project.el is a built-in library that offers similar functionality to projectile. It is also available on GNU ELPA. [km: repositioned fboundp call] Message-Id: <8ce1733ac0d0f63622d9060015949f31ce83d6ee.1612294275.git.public@yoctocell.xyz> --- piem.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/piem.el b/piem.el index 7b198d1..99c1937 100644 --- a/piem.el +++ b/piem.el @@ -372,6 +372,11 @@ If INBOX is nil, use the inbox returned by `piem-inbox'." (when-let ((current (and (fboundp 'projectile-project-root) (projectile-project-root)))) (abbreviate-file-name current))))) + (and (bound-and-true-p project-list-file) + (file-exists-p project-list-file) + (fboundp 'project-prompt-project-dir) + (expand-file-name + (project-prompt-project-dir))) (and piem-use-magit (fboundp 'magit-read-repository) (magit-read-repository)) -- cgit v1.2.3