From 0e9ae4aa4de3115fe488cdf75c2ff7a757360e49 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Tue, 5 Mar 2024 21:20:56 +0100 Subject: [PATCH] Fix conditional loading of helm It only makes sense to load helm when it's installed, isn't it? --- init.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/init.el b/init.el index 85154a4..ca3b3c5 100644 --- a/init.el +++ b/init.el @@ -2960,10 +2960,6 @@ eventuelly be set to nil, however)." (with-demoted-errors "Cannot activate `vlf': %s" (require 'vlf-setup)) - ;; Explicitly require helm, because autoloading is difficult with helm's - ;; separate `helm-command-prefix-key' mechanism. - (require 'helm) - ;; Global Hooks (add-hook 'minibuffer-setup-hook 'cursor-intangible-mode) @@ -3060,6 +3056,9 @@ eventuelly be set to nil, however)." (bind-key "C-S-s" #'counsel-grep-or-swiper)) (when (package-installed-p 'helm) + ;; Explicitly require helm, because autoloading is difficult with helm's + ;; separate `helm-command-prefix-key' mechanism. + (require 'helm) (bind-key "M-y" #'helm-show-kill-ring) (bind-key helm-command-prefix-key #'helm-command-prefix))