From b5b439b4784b45790e57f9c10fabb722dddaad61 Mon Sep 17 00:00:00 2001 From: fnussbaum Date: Sun, 1 Sep 2024 12:56:21 +0200 Subject: [PATCH] [bootstrap] Handle deferred loading in pdf workaround --- layers/+distributions/spacemacs-bootstrap/packages.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layers/+distributions/spacemacs-bootstrap/packages.el b/layers/+distributions/spacemacs-bootstrap/packages.el index 62eee22df9b5..8728e6615d87 100644 --- a/layers/+distributions/spacemacs-bootstrap/packages.el +++ b/layers/+distributions/spacemacs-bootstrap/packages.el @@ -151,7 +151,7 @@ ;; evil-refresh-cursor is called as part of the window-configuration-change-hook ;; and seems to induce performance problems - (when (boundp 'pdf-view-mode) + (with-eval-after-load 'pdf-view (advice-add 'evil-refresh-cursor :around #'spacemacs/not-in-pdf-view-mode)) (when vim-style-enable-undo-region