| ;;; Commentary: | ;;; Commentary: | ||||
| ;;; Code: | ;;; Code: | ||||
| (add-to-list 'load-path "/usr/share/emacs/site-lisp/mu4e") | |||||
| (add-to-list 'load-path "/usr/share/emacs/site-lisp/elpa-src/mu4e-1.10.8") | |||||
| (require 'mu4e) | (require 'mu4e) | ||||
| ;;(setq mu4e-get-mail-command "offlineimap") | ;;(setq mu4e-get-mail-command "offlineimap") | ||||
| ;; http://cachestocaches.com/2017/3/complete-guide-email-emacs-using-mu-and-/ | ;; http://cachestocaches.com/2017/3/complete-guide-email-emacs-using-mu-and-/ | ||||
| ;; https://www.djcbsoftware.nl/code/mu/mu4e/Bookmarks.html | |||||
| ;; Include a bookmark to open all of my inboxes | ;; Include a bookmark to open all of my inboxes | ||||
| (add-to-list 'mu4e-bookmarks | (add-to-list 'mu4e-bookmarks | ||||
| (make-mu4e-bookmark | |||||
| :name "All Inboxes" | |||||
| '(:name "All Inboxes" | |||||
| :query "maildir:/INBOX" | :query "maildir:/INBOX" | ||||
| :key ?i)) | :key ?i)) | ||||
| (add-to-list 'mu4e-bookmarks | (add-to-list 'mu4e-bookmarks | ||||
| (make-mu4e-bookmark | |||||
| :name "Gmail unread" | |||||
| '(:name "Gmail unread" | |||||
| :query "maildir:/Gmail AND flag:unread AND NOT flag:trashed" | :query "maildir:/Gmail AND flag:unread AND NOT flag:trashed" | ||||
| :key ?g)) | :key ?g)) | ||||
| ;; This allows me to use 'helm' to select mailboxes | ;; This allows me to use 'helm' to select mailboxes | ||||
| ;; http://pragmaticemacs.com/emacs/master-your-inbox-with-mu4e-and-org-mode/ | ;; http://pragmaticemacs.com/emacs/master-your-inbox-with-mu4e-and-org-mode/ | ||||
| ;;store org-mode links to messages | ;;store org-mode links to messages | ||||
| (require 'org-mu4e) | |||||
| (require 'mu4e-org) | |||||
| ;;store link to message if in header view, not to header query | ;;store link to message if in header view, not to header query | ||||
| (setq org-mu4e-link-query-in-headers-mode nil) | (setq org-mu4e-link-query-in-headers-mode nil) | ||||