   (setq user-full-name "Sean Smith"
         mu4e-maildir "~/.mail"
         mu4e-attachment-dir "~/.mail/.attachments"
-        mu4e-get-mail-command "mbsync -a"
         mu4e-change-filenames-when-moving t)
 
+  (setq mu4e-get-mail-command "true" ;; Mail already retrieved by systemd unit.
+        mu4e-update-interval (* 60 15)) ;; Reindex every 15 minutes.
+
+  ;; Prefer plaintext.
+  (setq mu4e-view-html-plaintext-ratio-heuristic most-positive-fixnum)
 
   ;; Gmail specific things.
   ;; This is mostly taken from Doom emacs.
   (setq mu4e-sent-messages-behavior 'delete
         mu4e-index-cleanup nil
-        mu4e-index-lazy-check t
-        mu4e-compose-format-flowed t
-        fill-flowed-display-column 72)
+        mu4e-index-lazy-check t)
+
+  (setq mu4e-completing-read-function 'completing-read)
 
   (setq mu4e-use-fancy-chars nil
+        mu4e-headers-thread-blank-prefix '("  " . " ")
         mu4e-headers-thread-child-prefix '("|>" . " ")
-        mu4e-headers-thread-last-child-prefix '("|>" . " ")
+        mu4e-headers-thread-last-child-prefix '("->" . " ")
         mu4e-headers-thread-connection-prefix '("| " . " ")
-        mu4e-headers-thread-orphan-prefix '("| " . " ")
-        mu4e-headers-thread-single-orphan-prefix '("|>" . " ")
+        mu4e-headers-thread-orphan-prefix '("|>" . " ")
+        mu4e-headers-thread-single-orphan-prefix '("->" . " ")
         mu4e-headers-thread-duplicate-prefix '("=" . " "))
 
   (setq smtpmail-stream-type 'starttls

  (setq message-kill-buffer-on-exit t)

  (setq mu4e-maildir-shortcuts '(("/personal/INBOX" . ?p)
                                 ("/work/INBOX" . ?w)))

  (defun gmail-fix-flags (mark msg)
    (pcase mark

                       (smtpmail-smtp-service . 25)
                       (user-mail-address . "sean@coder.com"))
                     t)

  :hook ((mu4e-compose-mode . turn-off-auto-fill))
  :bind (:map mu4e-headers-mode-map
              ("C-c r" . mu4e-update-index)))

(provide 'seanmacs-email)
