Move custom helm key bindings to the use-package configuration
This is where they belong.master
parent
5d6110982b
commit
9cf79c3733
13
init.el
13
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 "<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)))
|
||||
|
|
Loading…
Reference in New Issue