From b40c8672bcfa86d1357a4a30e9425ab80da0abee Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sun, 20 Dec 2020 09:00:38 +0100 Subject: [PATCH] Add explicit autoload for gnus-registry-split-with-parent Apparantly, when Gnus starts up for the first time, this function seems to be undefined, because we are calling gnus-registry-initialize quite late in the init process. Let's try to fix this by having this autoload. --- init.el | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/init.el b/init.el index 577149d..6f24575 100644 --- a/init.el +++ b/init.el @@ -1527,6 +1527,7 @@ gnus-always-force-window-configuration t gnus-fetch-old-headers nil gnus-select-method '(nnnil "") + gnus-refer-article-method 'current gnus-visible-headers (regexp-opt '("From:" "Newsgroups:" @@ -1635,17 +1636,19 @@ ;; Gnus Registry -(setq gnus-registry-split-strategy 'majority - gnus-registry-ignored-groups '(("^nntp" t) - ("^nnfolder" t) - ("^nnir" t) - ("^nnmaildir" t) - ("INBOX$" t)) - gnus-registry-max-entries 40000 - gnus-registry-track-extra '(sender subject recipient) - gnus-registry-cache-file (expand-file-name "gnus.registry.eioioi" - emacs-d) - gnus-refer-article-method 'current) +(use-package gnus-registry + :commands (gnus-registry-split-fancy-with-parent + gnus-registry-initialize) + :init (setq gnus-registry-split-strategy 'majority + gnus-registry-ignored-groups '(("^nntp" t) + ("^nnfolder" t) + ("^nnir" t) + ("^nnmaildir" t) + ("INBOX$" t)) + gnus-registry-max-entries 40000 + gnus-registry-track-extra '(sender subject recipient) + gnus-registry-cache-file (expand-file-name "gnus.registry.eioioi" + emacs-d))) ;; MIME decoding