diff options
| author | Daniel Mendler <mail@daniel-mendler.de> | 2021-11-05 12:57:21 +0100 |
|---|---|---|
| committer | Daniel Mendler <mail@daniel-mendler.de> | 2021-11-05 12:57:21 +0100 |
| commit | 9249404cdc83fe4a827d0ba909de263e3f860577 (patch) | |
| tree | fbad94cc813827341f7d2c554fc850af5c296a5b | |
| parent | 92f4d3764ae1b75da2024bed12a906e740ea1b32 (diff) | |
Add corfu-annotations face
| -rw-r--r-- | corfu.el | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -148,7 +148,11 @@ completion began less than that number of seconds ago." (defface corfu-echo '((t :inherit completions-annotations)) - "Face used to for echo area messages.") + "Face used for echo area messages.") + +(defface corfu-annotations + '((t :inherit completions-annotations)) + "Face used for annotations.") (defvar corfu-map (let ((map (make-sparse-keymap))) @@ -572,10 +576,11 @@ completion began less than that number of seconds ago." (let ((suffix (or (funcall ann cand) ""))) (list cand "" ;; The default completion UI adds the `completions-annotations' face - ;; if no other faces are present. + ;; if no other faces are present. We use a custom `corfu-annotations' + ;; face to allow further styling which fits better for popups. (if (text-property-not-all 0 (length suffix) 'face nil suffix) suffix - (propertize suffix 'face 'completions-annotations))))) + (propertize suffix 'face 'corfu-annotations))))) candidates) candidates))) |
