aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--piem.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/piem.el b/piem.el
index 31b9c71..afe6b7a 100644
--- a/piem.el
+++ b/piem.el
@@ -373,9 +373,13 @@ files."
(defvar piem--inboxes 'unset)
+(defun piem-public-inbox-config-file ()
+ "Return public-inbox's configuration file."
+ (or (getenv "PI_CONFIG")
+ (expand-file-name "~/.public-inbox/config")))
+
(defun piem--merge-config-inboxes ()
- (let ((cfg-file (or (getenv "PI_CONFIG")
- (expand-file-name "~/.public-inbox/config"))))
+ (let ((cfg-file (piem-public-inbox-config-file)))
(if (not (file-readable-p cfg-file))
(setq piem--inboxes piem-inboxes)
(let ((case-fold-search t)