From 6cbf405580bf07b00dd49ccc6647c1bb403b3859 Mon Sep 17 00:00:00 2001 From: finga Date: Wed, 16 Oct 2024 14:21:06 +0200 Subject: [PATCH] dev: Configure company mode keybindings Disable the default `company-complete-selection` keybinding which was just return to still be able to enter a newline and use "M-RET" instead. --- .emacs.d/config/dev.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.emacs.d/config/dev.el b/.emacs.d/config/dev.el index a46ea30..7507333 100644 --- a/.emacs.d/config/dev.el +++ b/.emacs.d/config/dev.el @@ -49,3 +49,10 @@ :config (setq lsp-ui-doc-position 'at-point) (setq lsp-ui-doc-show-with-mouse nil)) + +(use-package company + :ensure t + :bind (:map company-active-map + ("RET" . nil) + ("" . nil) + ("M-RET" . company-complete-selection)))