Guest User

Untitled

a guest
Dec 17th, 2017
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. (add-to-list 'mu4e-header-info-custom
  2. '(:real-to .
  3. (:name "Real :to Address"
  4. :shortname "realto"
  5. :help ":to address without any aliases"
  6. :function (lambda (msg)
  7. (cdr (nth 0 (mu4e-message-field msg :to)))))))
  8.  
  9. (setq mu4e-headers-fields
  10. '((:human-date . 12)
  11. (:flags . 6)
  12. (:from . 22)
  13. (:subject . 80)
  14. (:real-to . nil)))
  15.  
  16. (setq header-highlights
  17. '((".*public@mydomain.*" . email-public-face)
  18. (".*teacher@mydomain.*" . email-teacher-face)
  19. (".*iain@mydomain.*" . email-iain-face)
  20. (".*photos@mydomain.*" . email-photos-face)
  21. (".*iain@workdomain.com.*" . email-wiserobot-face)
  22. (".*@hotmail.com.*" . email-hotmail-face)
  23. (".*\(myname@me.com\|myname@icloud.com\).*" . email-me-face)))
  24.  
  25. (add-hook 'mu4e-headers-mode-hook
  26. (lambda ()
  27. (setq font-lock-defaults '(header-highlights))))
  28.  
  29. (defface email-public
  30. '((t :foreground "#bf9f00"))
  31. "Face for mail headers to public@mydomain"
  32. :group `basic-faces)
  33. (defface email-teacher
  34. '((t :foreground "#9f009f"))
  35. "Face for mail headers to Teacher@mydomain"
  36. :group 'basic-faces)
  37. (defface email-iain
  38. '((t :foreground "#009f00"))
  39. "Face for mail headers to iain@mydomain"
  40. :group 'basic-faces)
  41. (defface email-photos
  42. '((t :foreground "#ef1010"))
  43. "Face for mail headers to photos@mydomain"
  44. :group 'basic-faces)
  45. (defface email-wiserobot
  46. '((t :foreground "#0000e8"))
  47. "Face for mail headers to iain@workdomain"
  48. :group 'basic-faces)
  49. (defface email-hotmail
  50. '((t :foreground "#7840f8"))
  51. "Face for mail headers to myname@hotmail.com"
  52. :group 'basic-faces)
  53. (defface email-me
  54. '((t :foreground "#00c080"))
  55. "Face for mail headers to myname@me.com"
  56. :group 'basic-faces)
  57.  
  58.  
  59. (setq email-public-face `email-public
  60. email-teacher-face 'email-teacher
  61. email-iain-face 'email-iain
  62. email-photos-face 'email-photos
  63. email-wiserobot-face 'email-wiserobot
  64. email-hotmail-face 'email-hotmail
  65. email-me-face 'email-me)
Add Comment
Please, Sign In to add comment