       '(progn
          (define-key mu4e-headers-mode-map "x" #'my-mu4e-mark-execute-all-no-confirm)))
 
+    ;; https://emacs.stackexchange.com/a/24430
+    (defun draft-auto-save-buffer-name-handler (operation &rest args)
+      "for `make-auto-save-file-name' set '.' in front of the file name; do nothing for other operations"
+      (if
+          (and buffer-file-name (eq operation 'make-auto-save-file-name))
+          (concat (file-name-directory buffer-file-name)
+                  "."
+                  (file-name-nondirectory buffer-file-name))
+        (let ((inhibit-file-name-handlers
+               (cons 'draft-auto-save-buffer-name-handler
+                     (and (eq inhibit-file-name-operation operation)
+                          inhibit-file-name-handlers)))
+              (inhibit-file-name-operation operation))
+          (apply operation args))))
+
+    (add-to-list 'file-name-handler-alist '("Drafts/cur/" . draft-auto-save-buffer-name-handler))
+
     (autoload 'mm-url-decode-entities-string "mm-url")
     (defun get-url-html-title (url &rest ignored)
       "Return the title of the HTML page at URL."

    ;; Python.
    (global-flycheck-mode -1)
    (custom-set-variables '(python-guess-indent nil)
                          '(python-indent-offset 2))

    ;; org-mode.
    (setq org-agenda-files

            ))

    ;; mu4e.
    ;; (add-to-list 'load-path "/usr/local/share/emacs/site-lisp/mu4e")
    (add-to-list 'load-path "/usr/local/Cellar/mu/HEAD-90868bd_1/share/emacs/site-lisp/mu/mu4e")
    (setq user-full-name "Brandon Amos"
          user-mail-address "bamos@cs.cmu.edu"
          message-send-mail-function 'smtpmail-send-it
          smtpmail-local-domain "gmail.com"
          smtpmail-default-smtp-server "smtp.gmail.com"
          smtpmail-smtp-server "smtp.gmail.com"
          smtpmail-smtp-service 587
          smtpmail-queue-mail nil
          smtpmail-queue-dir "~/.mu/queue/cur"
          mu4e-maildir "~/mbsync"
          mu4e-drafts-folder "/[Gmail].Drafts"
          mu4e-sent-folder   "/[Gmail].Sent Mail"
