Warn if global key bindings for helm are not available

If helm is installed as system package, the global keybindings may be missing.
The user should be informed about this and reinstall helm from melpa.
This commit is contained in:
Daniel Borchmann 2020-11-21 11:29:07 +01:00
parent 822b8a7430
commit 5ba0b27ec4
Signed by: exot
GPG Key ID: 1C7071A75BB72D64

View File

@ -2122,8 +2122,13 @@
(require 'helm-buffers) (require 'helm-buffers)
(require 'helm-ring) (require 'helm-ring)
(bind-key "#" #'helm-emms helm-command-map) (if (require 'helm-global-bindings nil :no-error)
(bind-key "P" #'helm-pages helm-command-map) (progn
(bind-key "#" #'helm-emms helm-command-map)
(bind-key "P" #'helm-pages helm-command-map))
(warn (concat
"Cannot load `helm-global-bindings', please check your helm installation for completeness. "
"(Have you installed it from melpa?)")))
(bind-key "<tab>" #'helm-execute-persistent-action helm-map) (bind-key "<tab>" #'helm-execute-persistent-action helm-map)
(bind-key "C-i" #'helm-execute-persistent-action helm-map) (bind-key "C-i" #'helm-execute-persistent-action helm-map)