Move custom helm key bindings to the use-package configuration

This is where they belong.
Daniel Borchmann 2020-08-27 11:49:42 +02:00
parent 5d6110982b
commit 9cf79c3733
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 7 additions and 6 deletions

View File

@ -123,6 +123,10 @@
(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 'conditionally-enable-lispy)
@ -218,12 +222,6 @@
(bind-key [remap keyboard-quit] #'keyboard-quit-context+)
(bind-key "C-z" #'dired-recent-open)
;; Custom helm bindings
(require 'helm)
(bind-key "#" #'db/play-radio-stations helm-command-map)
(bind-key "P" #'helm-pages helm-command-map)
;; Overwrite certain keybindings only if packages are avilable
(when (package-installed-p 'counsel)
@ -1922,6 +1920,9 @@ With given ARG, display files in `db/important-document-path."
(require 'helm-buffers)
(require 'helm-ring)
(bind-key "#" #'db/play-radio-stations helm-command-map)
(bind-key "P" #'helm-pages helm-command-map)
(bind-key "<tab>" #'helm-execute-persistent-action helm-map)
(bind-key "C-i" #'helm-execute-persistent-action helm-map)
(bind-key "C-z" #'helm-select-action helm-map)))