aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXinglu Chen <public@yoctocell.xyz>2021-02-02 20:32:09 +0100
committerKyle Meyer <kyle@kyleam.com>2021-02-02 18:40:43 -0500
commitc468c6b6023436116f1d2377350a05cbbc4cc650 (patch)
tree30445e3f9168bf93606c4691dee1d2b7c0ba0b7b
parent656625e1f9628673c285e3357329aaa6f6e48843 (diff)
downloadpiem-c468c6b6023436116f1d2377350a05cbbc4cc650.tar.gz
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>
-rw-r--r--piem.el5
1 files changed, 5 insertions, 0 deletions
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))