From: Eshel Yaron Date: Thu, 2 Nov 2023 12:47:34 +0000 (+0100) Subject: * (completion-preview-mode): Simplify mode line lighter X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7176f39415e59a5f6e25ac91452c8380d989fc77;p=completion-preview.git * (completion-preview-mode): Simplify mode line lighter --- diff --git a/completion-preview.el b/completion-preview.el index 36ffb6e..9f26653 100644 --- a/completion-preview.el +++ b/completion-preview.el @@ -165,9 +165,7 @@ Compatibility definition for `minibuffer--sort-by-length-alpha'." ;;;###autoload (define-minor-mode completion-preview-mode "Show in-buffer completion preview as you type." - :lighter (:propertize " CP" - help-echo "Completion Preview" - mouse-face mode-line-highlight) + :lighter " CP" (if completion-preview-mode (add-hook 'post-command-hook #'completion-preview--post-command nil t) (remove-hook 'post-command-hook #'completion-preview--post-command t)