* cleanup mu4e~view-fontify-cited a bit, and add a few levels
This commit is contained in:
@ -551,17 +551,11 @@ Seen; if the message is not New/Unread, do nothing."
|
||||
;; Get the citation level at point -- i.e., the number of '>'
|
||||
;; prefixes, starting with 0 for 'no citation'
|
||||
(beginning-of-line 1)
|
||||
(let* ((text (re-search-forward "[[:word:]]" (line-end-position 1) t 1))
|
||||
(level (or (and text
|
||||
(how-many ">" (line-beginning-position 1) text)) 0))
|
||||
(let* ((level (how-many ">" (line-beginning-position 1)
|
||||
(line-end-position 1)))
|
||||
(face
|
||||
(cond
|
||||
((= 0 level) nil) ;; don't do anything
|
||||
((= 1 level) 'mu4e-cited-1-face)
|
||||
((= 2 level) 'mu4e-cited-2-face)
|
||||
((= 3 level) 'mu4e-cited-3-face)
|
||||
((= 4 level) 'mu4e-cited-4-face)
|
||||
(t nil))))
|
||||
(unless (zerop level)
|
||||
(intern-soft (format "mu4e-cited-%d-face" level)))))
|
||||
(when face
|
||||
(add-text-properties (line-beginning-position 1)
|
||||
(line-end-position 1) `(face ,face))))
|
||||
|
||||
Reference in New Issue
Block a user