From 3c8cb6e154be29f88de9c62208d8bfba82edc211 Mon Sep 17 00:00:00 2001 From: "Aaron L. Zeng" Date: Wed, 11 Sep 2024 11:37:17 -0400 Subject: [PATCH] [notmuch] Do not error if auto-completion layer not used --- layers/+email/notmuch/packages.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/layers/+email/notmuch/packages.el b/layers/+email/notmuch/packages.el index 28541292d2af..365b4982e4d0 100644 --- a/layers/+email/notmuch/packages.el +++ b/layers/+email/notmuch/packages.el @@ -26,6 +26,7 @@ (counsel-notmuch :requires ivy) (helm-notmuch :requires helm) (consult-notmuch :requires consult) + company notmuch org persp-mode @@ -155,9 +156,10 @@ (kbd "gr") 'notmuch-refresh-this-buffer (kbd "gR") 'notmuch-refresh-all-buffers (kbd "G") 'notmuch-search-last-thread - (kbd "M") 'compose-mail-other-frame) + (kbd "M") 'compose-mail-other-frame))) - (spacemacs|add-company-backends :backends notmuch-company :modes notmuch-message-mode))) +(defun notmuch/post-init-company () + (spacemacs|add-company-backends :backends notmuch-company :modes notmuch-message-mode)) (defun notmuch/pre-init-org () (spacemacs|use-package-add-hook org