email: start mu4e in background

Instead of autoloading one function...
This commit is contained in:
Max Schlueter 2024-04-12 10:44:53 +02:00
parent 655b40956b
commit 1de6abe136

View File

@ -1,6 +1,10 @@
;;; email.el -*- lexical-binding: t; -*-
(after! mu4e
;; Start mu4e in the background
;; https://github.com/djcb/mu/issues/2282
(require 'mu4e)
(mu4e 'background)
;; Recommended msmtp config from doom module documentation
(setq sendmail-program (executable-find "msmtp")
send-mail-function #'smtpmail-send-it
@ -121,7 +125,6 @@
;; (add-hook 'message-send-hook 'mml-secure-message-sign-smime)
(require 'khalel-icalendar)
)
;; (defun max/mu4e-view-import-attachment-calendar (msg attnum)
;; (let* ((att (mu4e~view-get-attach msg attnum))
@ -139,9 +142,6 @@
;; (add-to-list 'mu4e-view-attachment-actions
;; '("cImport in calendar" . max/mu4e-view-import-attachment-calendar) t)
;; Autoload this command so that the mbsync service can update the index
(autoload #'mu4e-update-index "mu4e" nil t)
(defun max/=mu4e ()
"Start email client and view all inboxes."
(interactive)