init-mu4e.el 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. (add-to-list 'load-path "~/programming/mu/mu4e")
  2. (require 'mu4e)
  3. ;; tell Emacs where my maildir is
  4. (setq mu4e-maildir (expand-file-name "~/.mail/gmail/"))
  5. (setq mu4e-drafts-folder "/[Gmail].Drafts")
  6. (setq mu4e-sent-folder "/[Gmail].Sent Mail")
  7. (setq mu4e-trash-folder "/[Gmail].Trash")
  8. ;; try to view the messages in html
  9. ;; (setq mu4e-view-prefer-html t mu4e-html2text-command "w3m -T text/html")
  10. ;; attempt to show images when viewing messages
  11. (setq mu4e-view-show-images t
  12. mu4e-show-images t
  13. mu4e-view-image-max-width 800)
  14. ;; use imagemagick, if available
  15. (when (fboundp 'imagemagick-register-types)
  16. (imagemagick-register-types))
  17. ;; This lets me know when the indexing sees something new... NOT just new mail though
  18. ;; (add-hook 'mu4e-index-updated-hook
  19. ;; (defun new-mail-sound ()
  20. ;; (shell-command "aplay ~/Sounds/boing.wav&")))
  21. ;; I can possibly specify actions in mu4e! Maybe when I reply to one message it lets me send a reply
  22. ;; with a specific email address mu4e-view-actions
  23. ;; nevermind. I should actually do that with contexts
  24. ;; specify an attachment folder
  25. (setq mu4e-attachment-dir "~/downloads")
  26. ;; don't save message to Sent Messages, GMail/IMAP will take care of this
  27. (setq mu4e-sent-messages-behavior 'delete)
  28. ;; setup some handy shortcuts
  29. (setq mu4e-maildir-shortcuts
  30. '(("/INBOX" . ?i)
  31. ("/[Gmail].Sent Mail" . ?s)
  32. ("/[Gmail].Trash" . ?t)))
  33. (setq
  34. user-mail-address "jbranso91@gmail.com"
  35. user-full-name "Joshua Branson"
  36. message-signature
  37. "<hr>\nJoshua Branson\nWayPoint\nWeb Developer\njbranso.me\nSent From Emacs\nhttps://www.gnu.org/software/emacs/")
  38. (provide 'init-mu4e)