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 - 2020-11-21 11:29:07 +01:00
parent 822b8a7430
commit 5ba0b27ec4
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 7 additions and 2 deletions

View File

@ -2122,8 +2122,13 @@
(require 'helm-buffers)
(require 'helm-ring)
(bind-key "#" #'helm-emms helm-command-map)
(bind-key "P" #'helm-pages helm-command-map)
(if (require 'helm-global-bindings nil :no-error)
(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 "C-i" #'helm-execute-persistent-action helm-map)