emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/vertico 8ab2cddf3a: README: Expand crm indicator config


From: ELPA Syncer
Subject: [elpa] externals/vertico 8ab2cddf3a: README: Expand crm indicator configuration
Date: Fri, 6 May 2022 09:57:51 -0400 (EDT)

branch: externals/vertico
commit 8ab2cddf3a1fb8799611b1d35118bf579aaf3154
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    README: Expand crm indicator configuration
---
 README.org | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/README.org b/README.org
index a9ab23341f..4c9c2fd236 100644
--- a/README.org
+++ b/README.org
@@ -93,8 +93,14 @@ configuration:
   (use-package emacs
     :init
     ;; Add prompt indicator to `completing-read-multiple'.
+    ;; We display [CRM<separator>], e.g., [CRM,] if the separator is a comma.
     (defun crm-indicator (args)
-      (cons (concat "[CRM] " (car args)) (cdr args)))
+      (cons (format "[CRM%s] %s"
+                    (replace-regexp-in-string
+                     "\\`\\[.*?]\\*\\|\\[.*?]\\*\\'" ""
+                     crm-separator)
+                    (car args))
+            (cdr args)))
     (advice-add #'completing-read-multiple :filter-args #'crm-indicator)
 
     ;; Do not allow the cursor in the minibuffer prompt



reply via email to

[Prev in Thread] Current Thread [Next in Thread]