summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2021-05-30 17:34:28 +0800
committerJSDurand <mmemmew@gmail.com>2021-05-30 17:34:28 +0800
commit0c6f3a8619db823e5918343f4f8cabcfcedb1cba (patch)
treeb779b49c7f496d7b2eb75609169d5f37c8a6c74b
parent1565ed7a1011e591fbec8e413288a43d7ec8a0c5 (diff)
completion-conf: Unbind space in completion maps
* completion-conf.el (minibuffer-local-completion-map) (minibuffer-local-must-match-map): Since typing space is quite common, it is not very convenient to use space to complete words, as the binding otherwise would.
-rw-r--r--completion-conf.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/completion-conf.el b/completion-conf.el
index efc9bd5..fdf0e10 100644
--- a/completion-conf.el
+++ b/completion-conf.el
@@ -44,6 +44,8 @@
(define-key minibuffer-local-completion-map (vector 'down) #'durand-embark-scroll-down-or-go-to-completions)
(define-key minibuffer-local-completion-map (vector 'up) #'durand-embark-scroll-up-or-go-to-completions)
(define-key minibuffer-local-completion-map (vector ?\s-v) #'durand-completion-toggle-display)
+(define-key minibuffer-local-completion-map (vector 32) nil)
+(define-key minibuffer-local-must-match-map (vector 32) nil)
(define-key completion-list-mode-map (vector 'down) #'durand-completion-scroll-down-or-go-to-minibuffer)
(define-key completion-list-mode-map (vector 'up) #'durand-completion-scroll-up-or-go-to-minibuffer)