From 8ae7d9d7f86c059287788e272581e64132c64cec Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Thu, 13 Aug 2020 16:14:54 +0200 Subject: [PATCH] Eagerly load helm Autoloading helm does not work well with custom keybindings. Binding our default "C-c h" to either `helm-command-map' or `helm-command-prefix' gives errors, as both are not commands. In the previous configuration, the prefix "C-c h" was initially undefined and only defined when helm was loaded. This led to irritating behavior. All this can be fixed by eagerly loading helm. This may slow down startup, in particular on Windows, but it should be worth it. --- init.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index f00c9ed..5771c14 100644 --- a/init.el +++ b/init.el @@ -109,6 +109,7 @@ ace-window-display-mode key-chord-mode ivy-mode + helm-mode minions-mode which-key-mode eyebrowse-mode @@ -1887,7 +1888,7 @@ With given ARG, display files in `db/important-document-path’." (use-package helm :ensure t - :commands (helm-show-kill-ring) + :defer t :diminish helm-mode :bind (:map helm-command-map ("#" . db/play-radio-stations) @@ -1918,6 +1919,9 @@ With given ARG, display files in `db/important-document-path’." (bind-key "C-i" #'helm-execute-persistent-action helm-map) (bind-key "C-z" #'helm-select-action helm-map))) +(use-package helm-ring + :commands (helm-show-kill-ring)) + (use-package ivy :ensure t :commands (ivy-mode