Tweak the name of a helper function

This commit is contained in:
Bozhidar Batsov 2023-02-24 08:39:08 +01:00
parent f5a7ce061f
commit 7bec9bf970

View file

@ -55,14 +55,14 @@
: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)
(defun prelude-crm-indicator (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)
(advice-add #'completing-read-multiple :filter-args #'prelude-crm-indicator)
;; Do not allow the cursor in the minibuffer prompt
(setq minibuffer-prompt-properties