From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms12 with LMTPS id 2HZnMMKoGWDNcwAAsNZ9tg (envelope-from ) for ; Tue, 02 Feb 2021 19:32:18 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id kHlyJMCoGWCvfAAAbx9fmQ (envelope-from ) for ; Tue, 02 Feb 2021 19:32:16 +0000 Received: from mail.yoctocell.xyz (h87-96-130-155.cust.a3fiber.se [87.96.130.155]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A40919403C9 for ; Tue, 2 Feb 2021 19:32:12 +0000 (UTC) From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1612294330; bh=xQmNdpjnkPXKM02bkUizDMGRR+4HFqHVSYGgMKL1jd0=; h=From:To:Subject:Date; b=YJYd/O7cW6EksJrXmwuafwEV05AQIP/Q+3XMrC1QCyptAsIu/J7+lVjOl8U3N4qdS EHY95BFelymVONEPBC+5I5Q85YOOrStDHhfYBWAlcUI/2UXFu+iMmrSJHgswi5DwIa atE9NMQTwy+Bv5P3FTPSI4HE248gg1Z0pDXI7ErE= To: piem@inbox.kyleam.com Subject: [PATCH] piem-inbox-coderepo-maybe-read: Support project.el Message-Id: <8ce1733ac0d0f63622d9060015949f31ce83d6ee.1612294275.git.public@yoctocell.xyz> Date: Tue, 02 Feb 2021 20:32:09 +0100 MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1612294336; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: dkim-signature; bh=2GAq0x7PvivAMz8kTOJ4nZR7uD+U6Y7LlczzMeu8b58=; b=mhjkdl2YIdPw4nxqktvwGrT7t5qNJWAYyBIaHcX1t2ZPB/Isjkm45AP/JpV+vpP6THB+Vg Q+m1GA4SRvwVhx26MkjD3JVTW3icXXbDGJzTQ6HCShNHEdTRkwzm6jBNayhAmMWYdTianl GnapN2N1q5VPjH5WHu8bLhrXROAIScyEqvUvbiFiuXCwk9C3HXbY8CxpHYfqS75JQNqN/S vlO+1xhnqnxlLSW75fZP5YNadyEMfiWkBvP1nA2vV7xK1OEHJK9NsFzu2kpJsooDtkvPbr Q9+JG68R4LytxjZWoPFdUy/DUtvBuwFXdm1+AlOLph2ClACU6ia5LlJFxZIhlA== ARC-Seal: i=1; s=key1; d=kyleam.com; t=1612294336; a=rsa-sha256; cv=none; b=FGZo7AtIrE/GeudUA6eHIXVhdjlAgkSdVzCM7sFRnhDYRQOSUEWqJOXzb39m4N6BaBtF6E F9t+/uW7jjVUdnYlOnUytxLwRS70/P9PLdSlY5Pq7Cbp7I+pxAUx7afeVHhwgBVfVXH3LN rT5JdB/+6kOXFCEtAFrP4ZE8mjMzzR9WBKh4pEk4ISwF/d6fjxF+Oq9Wu808Bq5hUNyajp vQIJ3VFxwkErwt9RO6TYzdIZAmx89tnw1Ea/4a8ZhfZlSw5piZGk5bm8JvtDOYp3OmSnSd +R+ofXguTRvcQiRTtcynVAXSWRWlQPYDCs5SmijXZ/PygCxlk5ACS6A4tMR7Ug== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=yoctocell.xyz header.s=mail header.b="YJYd/O7c"; spf=pass (aspmx1.migadu.com: domain of public@yoctocell.xyz designates 87.96.130.155 as permitted sender) smtp.mailfrom=public@yoctocell.xyz X-Migadu-Spam-Score: 0.91 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=yoctocell.xyz header.s=mail header.b="YJYd/O7c"; dmarc=pass (policy=none) header.from=yoctocell.xyz; spf=pass (aspmx1.migadu.com: domain of public@yoctocell.xyz designates 87.96.130.155 as permitted sender) smtp.mailfrom=public@yoctocell.xyz X-Migadu-Queue-Id: A40919403C9 X-Spam-Score: 0.91 X-Migadu-Scanner: scn1.migadu.com X-TUID: jzHwsC44BYfj 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. --- piem.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/piem.el b/piem.el index 7b198d1..b07c4f3 100644 --- a/piem.el +++ b/piem.el @@ -372,6 +372,11 @@ (defun piem-inbox-coderepo-maybe-read () (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) + (expand-file-name + (when (fboundp 'project-prompt-project-dir) + (project-prompt-project-dir)))) (and piem-use-magit (fboundp 'magit-read-repository) (magit-read-repository)) base-commit: 656625e1f9628673c285e3357329aaa6f6e48843 -- 2.29.2