From 9cf79c37330aad3389bc291f722ecdb8435eec79 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Thu, 27 Aug 2020 11:49:42 +0200 Subject: [PATCH] Move custom helm key bindings to the use-package configuration This is where they belong. --- init.el | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/init.el b/init.el index 87625c0..3bf951b 100644 --- a/init.el +++ b/init.el @@ -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 "" #'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)))