Provide a switch to auto run mu4e at emacs startup

This commit is contained in:
Ray 2021-03-05 19:20:01 +08:00 committed by Maximilian Wolff
parent 86ea9871cb
commit 5fac9a26c6
2 changed files with 6 additions and 0 deletions

View File

@ -51,5 +51,8 @@
(defvar mu4e-org-compose-support nil
"If non-nil org-mu4e is configured.")
(defvar mu4e-autorun-background-at-startup nil
"If non-nil, mu4e will automatically run in background at emacs startup.")
(when mu4e-installation-path
(add-to-list 'load-path mu4e-installation-path))

View File

@ -103,6 +103,9 @@
(when (fboundp 'imagemagick-register-types)
(imagemagick-register-types))
(when mu4e-autorun-background-at-startup
(mu4e t))
(add-to-list 'mu4e-view-actions
'("View in browser" . mu4e-action-view-in-browser) t)