From f239616fb8d7e8fa86c16b49a62075fd42222b70 Mon Sep 17 00:00:00 2001 From: Zhu Zihao Date: Sat, 20 Jun 2020 02:33:01 +0800 Subject: [PATCH] mu4e: Delay the execution of workaround for desktop.el Some Emacs user may never use desktop.el, We don't need to require desktop.el for them. --- mu4e/mu4e.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mu4e/mu4e.el b/mu4e/mu4e.el index edeb267c..7c75914e 100644 --- a/mu4e/mu4e.el +++ b/mu4e/mu4e.el @@ -42,8 +42,8 @@ ;; We can't properly use compose buffers that are revived using ;; desktop-save-mode; so let's turn that off. -(require 'desktop) -(add-to-list 'desktop-modes-not-to-save 'mu4e-compose-mode) +(with-eval-after-load 'desktop + (eval '(add-to-list 'desktop-modes-not-to-save 'mu4e-compose-mode))) ;;;###autoload