Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions lisp/doom-keybinds.el
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,21 @@ and Emacs states, and for non-evil users.")
(defvar doom-leader-map (make-sparse-keymap)
"An overriding keymap for <leader> keys.")

(defvar doom-minibuffer-maps
(append '(minibuffer-local-map
minibuffer-local-ns-map
minibuffer-local-completion-map
minibuffer-local-must-match-map
minibuffer-local-isearch-map
read-expression-map)
(cond ((modulep! :completion ivy)
'(ivy-minibuffer-map
ivy-switch-buffer-map))
((modulep! :completion helm)
'(helm-map
helm-rg-map
helm-read-file-map))))
"A list of all the keymaps used for the minibuffer.")

;;
;;; Global keybind settings
Expand Down
17 changes: 1 addition & 16 deletions modules/config/default/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,7 @@
(defvar +default-want-RET-continue-comments t
"If non-nil, RET will continue commented lines.")

(defvar +default-minibuffer-maps
(append '(minibuffer-local-map
minibuffer-local-ns-map
minibuffer-local-completion-map
minibuffer-local-must-match-map
minibuffer-local-isearch-map
read-expression-map)
(cond ((modulep! :completion ivy)
'(ivy-minibuffer-map
ivy-switch-buffer-map))
((modulep! :completion helm)
'(helm-map
helm-rg-map
helm-read-file-map))))
"A list of all the keymaps used for the minibuffer.")

(defvaralias '+default-minibuffer-maps 'doom-minibuffer-maps)

;;
;;; Reasonable defaults
Expand Down
14 changes: 14 additions & 0 deletions modules/editor/evil/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -581,3 +581,17 @@ directives. By default, this only recognizes C directives.")
:i "C-o" #'completion-at-point
:i "C-n" #'cape-dabbrev
:i "C-p" #'+corfu/dabbrev-this-buffer))))


(unless evil-disable-insert-state-bindings
(when (modulep! :completion corfu)
(define-key!
:keymaps (append doom-minibuffer-maps
(when (modulep! :editor evil +everywhere)
'(evil-ex-completion-map)))
"C-x C-f" #'cape-file
"C-x s" #'cape-dict
"C-x C-s" #'yasnippet-capf
"C-x C-o" #'completion-at-point
"C-x C-n" #'cape-dabbrev
"C-x C-p" #'+corfu/dabbrev-this-buffer)))