email: start mu4e in background
Instead of autoloading one function...
This commit is contained in:
parent
655b40956b
commit
1de6abe136
10
email.el
10
email.el
@ -1,6 +1,10 @@
|
|||||||
;;; email.el -*- lexical-binding: t; -*-
|
;;; 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
|
;; Recommended msmtp config from doom module documentation
|
||||||
(setq sendmail-program (executable-find "msmtp")
|
(setq sendmail-program (executable-find "msmtp")
|
||||||
send-mail-function #'smtpmail-send-it
|
send-mail-function #'smtpmail-send-it
|
||||||
@ -121,7 +125,6 @@
|
|||||||
;; (add-hook 'message-send-hook 'mml-secure-message-sign-smime)
|
;; (add-hook 'message-send-hook 'mml-secure-message-sign-smime)
|
||||||
|
|
||||||
(require 'khalel-icalendar)
|
(require 'khalel-icalendar)
|
||||||
)
|
|
||||||
|
|
||||||
;; (defun max/mu4e-view-import-attachment-calendar (msg attnum)
|
;; (defun max/mu4e-view-import-attachment-calendar (msg attnum)
|
||||||
;; (let* ((att (mu4e~view-get-attach msg attnum))
|
;; (let* ((att (mu4e~view-get-attach msg attnum))
|
||||||
@ -139,9 +142,6 @@
|
|||||||
;; (add-to-list 'mu4e-view-attachment-actions
|
;; (add-to-list 'mu4e-view-attachment-actions
|
||||||
;; '("cImport in calendar" . max/mu4e-view-import-attachment-calendar) t)
|
;; '("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 ()
|
(defun max/=mu4e ()
|
||||||
"Start email client and view all inboxes."
|
"Start email client and view all inboxes."
|
||||||
(interactive)
|
(interactive)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user