[compleseus] Fix keys (#14968)

This commit is contained in:
duianto 2021-08-20 06:50:45 +02:00 committed by GitHub
parent 090a4c89da
commit 6205d29e11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View File

@ -96,6 +96,12 @@
(interactive)
(spacemacs/compleseus-search nil (projectile-project-root)))
(defun spacemacs/compleseus-find-file ()
"This solves the problem:
Binding a key to: `find-file' calls: `ido-find-file'"
(interactive)
(call-interactively 'find-file))
;; persp-mode stuff
(defun spacemacs/compleseus-spacemacs-layout-layouts ()
(interactive)

View File

@ -136,8 +136,10 @@
"/" #'spacemacs/compleseus-search-projectile-auto
"bb" #'spacemacs/compleseus-switch-to-buffer
"bB" #'consult-buffer
"ff" #'find-file
"fb" #'consult-bookmark
"ff" #'spacemacs/compleseus-find-file
"fr" #'consult-recent-file
"hda" #'consult-apropos
"jm" #'consult-mark
"jM" #'consult-global-mark
"sb" #'consult-line-multi
@ -223,6 +225,7 @@
("C-h B" . embark-bindings)) ;; alternative for `describe-bindings'
:init
(spacemacs/set-leader-keys "?" #'embark-bindings)
;; Optionally replace the key help with a completing-read interface
(setq prefix-help-command #'embark-prefix-help-command)