mu4e: propertize thread prefix characters

Brings visual consistency to unfolded threads.
This commit is contained in:
Nicholas Vollmer
2023-08-31 10:51:06 -04:00
parent b2918e2bea
commit 375e684ce6

View File

@ -329,6 +329,7 @@ into a string."
(let ((get-prefix (let ((get-prefix
(lambda (cell) (lambda (cell)
(if mu4e-use-fancy-chars (cdr cell) (car cell))))) (if mu4e-use-fancy-chars (cdr cell) (car cell)))))
(propertize
(cl-case type (cl-case type
(child (funcall get-prefix mu4e-headers-thread-child-prefix)) (child (funcall get-prefix mu4e-headers-thread-child-prefix))
(first-child (funcall get-prefix mu4e-headers-thread-first-child-prefix)) (first-child (funcall get-prefix mu4e-headers-thread-first-child-prefix))
@ -339,7 +340,8 @@ into a string."
(single-orphan (funcall get-prefix (single-orphan (funcall get-prefix
mu4e-headers-thread-single-orphan-prefix)) mu4e-headers-thread-single-orphan-prefix))
(duplicate (funcall get-prefix mu4e-headers-thread-duplicate-prefix)) (duplicate (funcall get-prefix mu4e-headers-thread-duplicate-prefix))
(t "?")))) (t "?"))
'face 'mu4e-thread-fold-face)))
;; headers in the buffer are prefixed by an invisible string with the docid ;; headers in the buffer are prefixed by an invisible string with the docid