nit(mu4e): remove underline for blank space

Previously, this was a bit confusing and didn't look quite right.
Instead, just pad the space in the temp buffer instead of fontifying it
into a button.
This commit is contained in:
Sean Farley 2023-09-29 13:36:45 -07:00 committed by Yann Esposito (Yogsototh)
parent c8335a5451
commit 49fda94d27
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646

View file

@ -120,6 +120,7 @@ is non-nil."
;; Better search symbols
(letf! ((defun make-help-button (text help-echo)
(with-temp-buffer
(insert " ")
(insert-text-button text
'help-echo help-echo
'mouse-face nil)
@ -128,13 +129,13 @@ is non-nil."
(cons (make-help-button text1 help-echo)
(make-help-button text2 help-echo))))
(setq mu4e-headers-threaded-label
(make-help-button-cons "T" (concat " " (nerd-icons-octicon "nf-oct-git_branch" :v-adjust 0.05))
(make-help-button-cons "T" (nerd-icons-octicon "nf-oct-git_branch" :v-adjust 0.05)
"Thread view")
mu4e-headers-related-label
(make-help-button-cons "R" (concat " " (nerd-icons-mdicon "nf-md-link" :v-adjust -0.1))
(make-help-button-cons "R" (nerd-icons-mdicon "nf-md-link" :v-adjust -0.1)
"Showing related emails")
mu4e-headers-full-label
(make-help-button-cons "F" (concat " " (nerd-icons-mdicon "nf-md-disc"))
(make-help-button-cons "F" (nerd-icons-mdicon "nf-md-disc")
"Search is full!")))
;; set mail user agent