Mu4e: Change colourise to (sigh) american spelling

This commit is contained in:
TEC 2020-10-14 14:17:35 +08:00
parent b1f7e9b9f9
commit 92cfdd6f7f
No known key found for this signature in database
GPG key ID: 779591AFDB81F06C
2 changed files with 8 additions and 8 deletions

View file

@ -125,10 +125,10 @@ will also be the width of all other printable characters."
mu4e-headers-unread-mark (cons "u" (+mu4e-normalised-icon "eye-slash" :v-adjust 0.05))))
;;;###autoload
(defun +mu4e-header-colourise (str)
(defun +mu4e-header-colorize (str)
(let* ((str-sum (apply #'+ (mapcar (lambda (c) (% c 3)) str)))
(colour (nth (% str-sum (length mu4e-header-colourised-faces))
mu4e-header-colourised-faces)))
(colour (nth (% str-sum (length mu4e-header-colorized-faces))
mu4e-header-colorized-faces)))
(put-text-property 0 (length str) 'face colour str)
str))