Only bind C-s in minibuffer if ivy/helm are available
This commit is contained in:
parent
cf180bea92
commit
064603f6e6
2 changed files with 5 additions and 5 deletions
|
@ -6,10 +6,7 @@
|
|||
;; Minibuffer
|
||||
(define-key! evil-ex-completion-map
|
||||
"C-a" #'evil-beginning-of-line
|
||||
"C-b" #'evil-backward-char
|
||||
"C-s" (if (featurep! :completion ivy)
|
||||
#'counsel-minibuffer-history
|
||||
#'helm-minibuffer-history))
|
||||
"C-b" #'evil-backward-char)
|
||||
|
||||
(define-key! :keymaps +default-minibuffer-maps
|
||||
[escape] #'abort-recursive-edit
|
||||
|
|
|
@ -382,7 +382,10 @@
|
|||
#'counsel-minibuffer-history)
|
||||
((featurep! :completion helm)
|
||||
#'helm-minibuffer-history)))
|
||||
(define-key! :keymaps +default-minibuffer-maps
|
||||
(define-key!
|
||||
:keymaps (append +default-minibuffer-maps
|
||||
(when (featurep! :editor evil +everywhere)
|
||||
'(evil-ex-completion-map)))
|
||||
"C-s" command))
|
||||
|
||||
;; Smarter C-a/C-e for both Emacs and Evil. C-a will jump to indentation.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue