using an inline preview. New user options in the 'completion-preview'
customization group control exactly when Emacs displays this preview.
++++
+*** New user option 'extended-command-dim-hyphens'.
+Set this to non-nil to have Emacs dim hyphens in 'M-x' completions.
+
---
** The highly accessible Modus themes collection has eight items.
The 'modus-operandi' and 'modus-vivendi' are the main themes that have
:group 'next-error
:version "28.1")
+(defcustom extended-command-dim-hyphens nil
+ "Whether to dim hyphens in \\[execute-extended-command] completions."
+ :type 'boolean
+ :group 'minibuffer
+ :version "30.1")
+
+(defface dim-hyphen
+ '((t :inherit shadow :weight light))
+ "Face for dimming hyphens in \\[execute-extended-command] completions."
+ :group 'minibuffer
+ :version "30.1")
+
(defun next-error-buffer-on-selected-frame (&optional _avoid-current
extra-test-inclusive
extra-test-exclusive)
(t ""))))
(put-text-property 0 (length suffix)
'face 'completions-annotations suffix)
+ (when extended-command-dim-hyphens
+ (named-let dim ((hy (string-search "-" command-name)))
+ (when hy
+ (add-face-text-property hy (1+ hy) 'dim-hyphen nil command-name)
+ (dim (string-search "-" command-name (1+ hy))))))
(list command-name "" suffix)))
command-names)))