fix: org-store-link doesn't work unless you load mu4e

When mu4e layer is present org-store-link doesn't work immediately when you
start Emacs, unless you explicitly load mu4e.

It'd display "Please load mu4e before mu4e-org" message and do nothing.
This commit is contained in:
Ag Ibragimov 2020-06-08 17:06:14 -07:00 committed by Maximilian Wolff
parent 0e9edda361
commit 7234d61003
1 changed files with 3 additions and 1 deletions

View File

@ -152,7 +152,9 @@ mu4e-use-maildirs-extension-load to be evaluated after mu4e has been loaded."
(defun mu4e/pre-init-org ()
;; load mu4e-org when org is actually loaded
(with-eval-after-load 'org (require 'mu4e-org nil 'noerror)))
(with-eval-after-load 'org
(require 'mu4e nil 'noerror)
(require 'mu4e-org nil 'noerror)))
(defun mu4e/pre-init-window-purpose ()
(spacemacs|use-package-add-hook window-purpose