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.
This commit is contained in:
Daniel Borchmann 2020-08-13 16:14:54 +02:00
parent abc06188b7
commit 8ae7d9d7f8
Signed by: exot
GPG Key ID: 1C7071A75BB72D64

View File

@ -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